delphimvcframework/samples/renders/MyDataModuleU.pas
Daniele Teti 9d0ab1cf45 FIX TRESTAdapter
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.
2017-05-17 22:35:07 +02:00

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.