I'm trying to loop the children of an EntitySet and run a function named NullToDates on each child. I don't know the type of the EntitySet, so I can't get a reference to it. (In my example I have it as type Object, but this cast fails). There are probably easier ways to do several things here. Please make other suggestions where appropriate. // There is probably an easier way to do this if (obj.GetType().ToString().Contains("EntitySet")) { // Get a reference to the entityset. System.Data.DLinq.EntitySet<Object>
Read More...