1
Vote

Unify Compiled "Object" and "Table" Entities

description

Remove the ill-chosen branching of "Object" and "Table" views. Use a more declarative syntax for specifying contextual names and types. This will get around the current annoyance of Objects not having Methods, and the general disconnect in transform code.
 
ex:
<lzc:object name="HourlyEmployee" type="laz:HourlyEmployee" defaultContext="Logical" inherits="EmployeeBase">
<lzc:object-names>
  <lzc:object-name context="Logical" value="HourlyEmployee" />
  <lzc:object-name context="Friendly" value="Hourly Employee" />
  <lzc:object-name context="Database.Table" value="tblHourlyEmployee" />
  <lzc:object-name context="Database.StoredProc.Param" value="hourlyEmployee" />
</lzc:object-names>
<lz:object-types>
  <lzc:object-type context="Logical" value="lzc:HourlyEmployee" />
  <lzc:object-type context="Database.Column" value="int" />
  <lzc:object-type context="Database.Parameter" value="int" />
  <lzc:object-type context="DataAccess.Parameter" value="System.Int32" />
  <lzc:object-type context="Model.Detail" value="HourlyEmployee" />
  <lzc:object-type context="Model.Collection" value="HourlyEmployeeCollection" />
</lz:object-types>
</lzc:object>

comments