mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 00:05:53 +01:00
9d0ab1cf45
FIX JSONDataObjects deserialization when some json value is null Improved IDEExpert (now can generate CRUD methods and there is a more explicative sample method name) REMOVED delphistompclient from submodules. It will be used as external library not required by the core.
50 lines
1.4 KiB
ObjectPascal
50 lines
1.4 KiB
ObjectPascal
unit MyDataModuleU;
|
|
|
|
interface
|
|
|
|
uses
|
|
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
|
|
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
|
|
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.FB,
|
|
FireDAC.Phys.FBDef, FireDAC.Stan.Param, FireDAC.DatS,
|
|
FireDAC.DApt.Intf, FireDAC.DApt, FireDAC.Phys.IBBase, Data.DB,
|
|
FireDAC.Comp.DataSet, FireDAC.Comp.Client, FireDAC.ConsoleUI.Wait,
|
|
FireDAC.Comp.UI,
|
|
MVCFramework.Serializer.Commons;
|
|
|
|
type
|
|
TMyDataModule = class(TDataModule)
|
|
FDConnection1: TFDConnection;
|
|
qryCustomers: TFDQuery;
|
|
FDPhysFBDriverLink1: TFDPhysFBDriverLink;
|
|
qryCountry: TFDQuery;
|
|
FDGUIxWaitCursor1: TFDGUIxWaitCursor;
|
|
// [MVCNameAs('pippo')]
|
|
qryCustomersCUST_NO: TIntegerField;
|
|
qryCustomersCUSTOMER: TStringField;
|
|
qryCustomersCONTACT_FIRST: TStringField;
|
|
qryCustomersCONTACT_LAST: TStringField;
|
|
qryCustomersPHONE_NO: TStringField;
|
|
qryCustomersADDRESS_LINE1: TStringField;
|
|
qryCustomersADDRESS_LINE2: TStringField;
|
|
qryCustomersCITY: TStringField;
|
|
qryCustomersSTATE_PROVINCE: TStringField;
|
|
qryCustomersCOUNTRY: TStringField;
|
|
qryCustomersPOSTAL_CODE: TStringField;
|
|
qryCustomersON_HOLD: TStringField;
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
MyDataModule: TMyDataModule;
|
|
|
|
implementation
|
|
|
|
{%CLASSGROUP 'Vcl.Controls.TControl'}
|
|
{$R *.dfm}
|
|
|
|
end.
|