mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 00:05:53 +01:00
Updated Angular2 sample
This commit is contained in:
parent
4e366e5a53
commit
2acaf20731
Binary file not shown.
BIN
samples/angular2/CUSTOMERS_FB30.FDB
Normal file
BIN
samples/angular2/CUSTOMERS_FB30.FDB
Normal file
Binary file not shown.
@ -31,9 +31,12 @@ type
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
MVCFramework.Serializer.Commons;
|
||||
|
||||
procedure TCustomersController.GetCustomer(const ID: UInt64);
|
||||
begin
|
||||
Render(GetDAL.GetCustomerById(ID), true, true);
|
||||
Render(GetDAL.GetCustomerById(ID), true, dstSingleRecord);
|
||||
end;
|
||||
|
||||
procedure TCustomersController.GetCustomers;
|
||||
|
@ -32,7 +32,8 @@ const
|
||||
|
||||
{ %CLASSGROUP 'Vcl.Controls.TControl' }
|
||||
|
||||
{$R *.dfm}
|
||||
{$R *.dfm}
|
||||
|
||||
{ TDataModule1 }
|
||||
|
||||
procedure TCustomersTDG.DataModuleCreate(Sender: TObject);
|
||||
@ -68,7 +69,8 @@ var
|
||||
begin
|
||||
lParams := TStringList.Create;
|
||||
try
|
||||
lParams.Add('Database=' + ExtractFilePath(GetModuleName(HInstance)) + '\CUSTOMERS.FDB');
|
||||
// Use CUSTOMERS_FB25.FDB is you are using firebird 2.5
|
||||
lParams.Add('Database=' + ExtractFilePath(GetModuleName(HInstance)) + '\CUSTOMERS_FB30.FDB');
|
||||
lParams.Add('Protocol=TCPIP');
|
||||
lParams.Add('Server=localhost');
|
||||
lParams.Add('User_Name=sysdba');
|
||||
|
BIN
samples/angular2/fbclient.dll
Normal file
BIN
samples/angular2/fbclient.dll
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user