Updated Angular2 sample

This commit is contained in:
Daniele Teti 2017-04-30 00:05:21 +02:00
parent 4e366e5a53
commit 2acaf20731
5 changed files with 8 additions and 3 deletions

Binary file not shown.

View File

@ -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;

View File

@ -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');

Binary file not shown.