thotsaphon / delphi-orm

Automatically exported from code.google.com/p/delphi-orm
0 stars 0 forks source link

Mapping through CoC (Convention over Configuration) #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 magn...@gmail.com on 17 Nov 2011 at 6:48

GoogleCodeExporter commented 9 years ago
Will be implemented as part of Issue 6

Original comment by daniele....@gmail.com on 22 Nov 2011 at 5:03

GoogleCodeExporter commented 9 years ago

Original comment by daniele....@gmail.com on 22 Nov 2011 at 5:04