G
ggabe
Typed datasets seems to have a good compile time binding with the
table layout, i.e. all the table names and columns names are bound to
a C# class in compile time. But I found no compile time binding
equivalent for the data relations, however it could have been done.
A practical example:
MyTypedDS myDS;
//Defines two tables - parent and child, and has a relation between
them.
foreach (MyTypedDS.ParentRow parentRow in myDS.Parent.Rows){
foreach (MyTypedDS.ChildRow childRow in parentRow.GetChildRows(XXX)){
^^^
I can't pick anything from the dataset class for XXX, need to use
myDS.Relations["relationname"] that is a runtime binding - or maybe I
just missed something?
Thanks,
Gabe
table layout, i.e. all the table names and columns names are bound to
a C# class in compile time. But I found no compile time binding
equivalent for the data relations, however it could have been done.
A practical example:
MyTypedDS myDS;
//Defines two tables - parent and child, and has a relation between
them.
foreach (MyTypedDS.ParentRow parentRow in myDS.Parent.Rows){
foreach (MyTypedDS.ChildRow childRow in parentRow.GetChildRows(XXX)){
^^^
I can't pick anything from the dataset class for XXX, need to use
myDS.Relations["relationname"] that is a runtime binding - or maybe I
just missed something?
Thanks,
Gabe