Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code: TDataProxyFactory registration for SQL and DataProxy #5

Closed
bogdanpolak opened this issue Jan 18, 2019 · 0 comments
Closed
Projects
Milestone

Comments

@bogdanpolak
Copy link
Owner

bogdanpolak commented Jan 18, 2019

In the generated Delphi code should be also code for the SQL and DataProxy. Something like:

const
  SQLSELECT_OneMonthOrders = 'SELECT * FROM Orders '+
  'WHERE {month ORDERDATE} = :MONTH AND {year  ORDERDATE} = :YEAR';
procedure RegisterSQLProxy;
begin
  AppDataProxyFactory.RegisterSQLProxy (TOrdersProxy, SQLSELECT_OneMonthOrders);
end;

And sample DataProxyFactory construction method, eg.:

var
  OrdersProxy: TOrdersProxy;
begin
  OrdersProxy :=  AppDataProxyFactory.ConstructAndOpenProxy (TOrdersProxy, [12, 2018]);
  ...
@bogdanpolak bogdanpolak changed the title Add TDataProxyFactory registration for SQL and DataProxy Add code: TDataProxyFactory registration for SQL and DataProxy Jan 18, 2019
@bogdanpolak bogdanpolak added this to the version 0.4 milestone Jul 25, 2019
@bogdanpolak bogdanpolak added this to To do in version 0.4 Jul 25, 2019
@bogdanpolak bogdanpolak moved this from To do to In progress in version 0.4 Jul 26, 2019
@bogdanpolak bogdanpolak moved this from In progress to Done in version 0.4 Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
version 0.4
  
Done
Development

No branches or pull requests

1 participant