D
deko
Is there a Pattern or best Practice for getting relational data out of a
database and into an object?
The object in question has public properties that look like this:
_stringName
_ArrayList of cfgObjects
_DateTime
_Integer
the cfgObject looks like this:
_stringCfgName
_ArrayList1 of strings
_ArrayList2 of strings
_bool1
_bool2
The data that initializes these objects is stored in a typed DataSet with
constraints and relations.
I suppose I could populate a DataTable and iterate through it in the
object's constructor but, as a newbie to C#, my guess is there's some
pattern or practice out there, or even some class in the FCL, that has a
better way.
Is there a standard (or better) way to get an object from relational data?
Thanks in advance.
database and into an object?
The object in question has public properties that look like this:
_stringName
_ArrayList of cfgObjects
_DateTime
_Integer
the cfgObject looks like this:
_stringCfgName
_ArrayList1 of strings
_ArrayList2 of strings
_bool1
_bool2
The data that initializes these objects is stored in a typed DataSet with
constraints and relations.
I suppose I could populate a DataTable and iterate through it in the
object's constructor but, as a newbie to C#, my guess is there's some
pattern or practice out there, or even some class in the FCL, that has a
better way.
Is there a standard (or better) way to get an object from relational data?
Thanks in advance.

