I have found a very common scenario in alot of applications that I build, that being of loading Data Objects for use by my applications.
I am trying to figure out the best way to make a "standard" in my application framework for loading objects and passing them back for an application to use.
Some things specifically speaking:
Child collections on objects.
In my Data Access Layer, should I return an object or a Datatable.
Should DAL classes be static?
NOTE: Highly unlikely to change dbproviders. This is not a concern.
Use Factory Pattern or other creational patterns for complex objects.
Thanks in advance, looking forward to a good discussion.
mj616
Member
82 Points
18 Posts
Patterns for Loading Objects
Feb 24, 2012 03:45 PM|LINK
I have found a very common scenario in alot of applications that I build, that being of loading Data Objects for use by my applications.
I am trying to figure out the best way to make a "standard" in my application framework for loading objects and passing them back for an application to use.
Some things specifically speaking:
Thanks in advance, looking forward to a good discussion.
ignatandrei
All-Star
135148 Points
21679 Posts
Moderator
MVP
Re: Patterns for Loading Objects
Feb 25, 2012 03:04 AM|LINK
Did you have a look at EF and Lazy loading?