2014-02-26 16:15 GMT-03:00 silvioprog <silviop...@gmail.com>:

> 2014-02-26 13:28 GMT-03:00 Sven Barth <pascaldra...@googlemail.com>:
>
[...]

Generics power:

https://raw.github.com/silvioprog/dopf/master/demos/entity/demo1.lpr

Soon, I'll:

storage.Entity.Id := 3;
storage.Entity.Name := 'Sven';

storage.Save; // storing entity ...
storage.Modify; // modifying
storage.Move(NewEntity); // moving entity ...
...
for Person in storage.List.Entities do
  WriteLn('ID: ', Person.Id, ' Name: ', Person.Name);

ie. without SQL, but also allowing user to use a specific SQL (link SQL
with joins).

Thanks Joao and Sven!

--
Silvio Clécio
My public projects - github.com/silvioprog
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to