kooloveme / delphi-orm Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/delphi-orm
Automatically exported from code.google.com/p/delphi-orm
Is it supposed to work with D2010??
Original issue reported on code.google.com by [email protected]
on 30 Oct 2011 at 12:44
It would be nice if DORM supported CoC.
For exemple: Consider this class:
type
TCustomer = class
public
property Id: Integer read FId write FId;
property Name: String read FName write FName;
property Age: Integer read FAge write FAge;
end;
The framework could assume that this class is mapped to a table called
CUSTOMER, and the properties are mapped to fields called ID, NAME and AGE. The
only mapping would be to inform the primary key field.
For cases where the programmer doesn't want to follow this convention (maybe on
legacy databases), he can simply do the manual mapping as we already do today
Original issue reported on code.google.com by [email protected]
on 17 Nov 2011 at 6:48
I would implementing mapping by attributes on DORM
and i see that are mixing on dorm.cfg
{
"persistence": {...},
"mapping": {...}
}
I think that this should be splitted in:
dorm.cfg
dorm.map
So i can continue using dorm.cfg to things about connection and strategies, and
dorm.map we can use or no (when using attributes).
Original issue reported on code.google.com by [email protected]
on 10 Nov 2011 at 3:02
Is it supposed to work with D2010??
Original issue reported on code.google.com by [email protected]
on 30 Oct 2011 at 12:44
Support for mapping classes using attributes instead of an external json
mapping.
Maybe there will be situations where a mapping is dificult/impossible to
express via attributes, but for these cases the programmer can always use the
standard json mapping. As for the most cases, I think a good set of attributes
will do the job much better than the json mapping.
For exemple, this class:
type
TCustomer = class
private
FId: Integer;
FName: String;
FAge: Integer;
public
property Id: Integer read FId write FId;
property Name: String read FName write FName;
property Age: Integer read FAge write FAge;
end;
Could be mapped this way:
type
[Table('CUSTOMER')]
TCustomer = class
private
[PrimaryKey]
[Column('ID')]
FId: Integer;
[Column('NAME')]
FName: String;
[Column('AGE')]
FAge: Integer;
public
property Id: Integer read FId write FId;
property Name: String read FName write FName;
property Age: Integer read FAge write FAge;
end;
And if http://code.google.com/p/delphi-orm/issues/detail?id=5 got implemented,
the class with it's complete mapping would be reduced to:
type
TCustomer = class
private
[PrimaryKey]
FId: Integer;
FName: String;
FAge: Integer;
public
property Id: Integer read FId write FId;
property Name: String read FName write FName;
property Age: Integer read FAge write FAge;
end;
Original issue reported on code.google.com by [email protected]
on 17 Nov 2011 at 6:58
How u dont have a forum yet, i dont know where put this message, then i will
put here ok?
I whould like see a 3tier system sample. Can you show us?
Remove this message and send me a mail if u think better!
Original issue reported on code.google.com by [email protected]
on 7 Nov 2011 at 12:06
Remove TdormCollection. I want to be free to use TObjectList<T>. No
framework-specific code should affect my BOs.
Original issue reported on code.google.com by [email protected]
on 6 Nov 2011 at 8:09
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.