c# - Need a template function to access a value in a child table by Id as if it were a property of the parent? -
if have 2 sql tables, tablea , tableb in relationship: tablea 1-* tableb
tablea (tableaid, ...)
tableb (tablebid, tableaid, value)
i'm using old entity framework (model.edmx) , have partial classes tablea , tableb.
is there way can implement funtion/property/etc can call following:
tablea a; var b = "mytablebid"; var desiredvalue = a.b.value; i'm hoping there's way create linq function, or template function. i'm afraid i'm not fiddly template functions?!
Comments
Post a Comment