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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -