Managed Data Access Layer


Create classes such as:
  • Query, Where, OrderBy, etc.
  • Add functionality to IDataProvider to produce a DbCommand object out of a Query. And perhaps multiple Command objects out of a Query[]?
  • Replace the current methods in the "Database" class with methods such as ExecuteNonQuery, ExecuteReader, etc.
  • Replace current calls to Database in templates with the appropriate code.
  • Add methods to List entites for querying based on a Where object. such as:
    Personlist pl = PersonList.Fetch(Where w);
Closed Jan 19, 2007 at 8:28 PM by justinc
This may be re-evaluated at a later version. For now this CR doesn't really make sense to the project and may require quite a bit of additional work.


justinc wrote Jan 19, 2007 at 8:27 PM

I'm not sure that this is actually applicable to this project after all. It doesn't really make sense to put non-strongly typed data access methods into business objects and the data access layer doesn't really need it with the current scheme. I'm going to defer this CR for now and consider it again at a later date.

wrote Jan 19, 2007 at 8:28 PM

wrote Feb 13, 2013 at 1:14 AM

wrote May 16, 2013 at 12:37 AM