MyGeneration CSharp Templates

MyGeneration CSharp Templates

Old forum URL: forums.lhotka.net/forums/t/3036.aspx


RichMark posted on Wednesday, June 13, 2007

I've placed some MyGeneration CSharp Templates on CSLAcontrib.

They include support for:

* ForeignKeys including Parent/Child relationships.

* propertygrid.

* Lazy Loading of related data

* Other items.

I've also included a sample application for the Northwind database.  This consists of a listbox to select an employee, and a propertygrid of all information related to the employee.  The data is editable in the propertygrid.


RichMark replied on Monday, June 18, 2007

I found a problem in the logic for IsDirty and IsValid related to Lazy Loading of required fields.  I fixed this by separating the validation logic into the rules and simply ignoring validation and "dirty" for items that are not loaded.  (i.e. If it's not loaded, it must be clean and valid)

Copyright (c) Marimer LLC