peterjazenga / delphi-orm

Automatically exported from code.google.com/p/delphi-orm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mapping through CoC (Convention over Configuration)

GoogleCodeExporter opened this issue · comments

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

  • Merged into: #6
Will be implemented as part of Issue 6

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

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

  • Changed state: Duplicate
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect