asp.net mvc - How to include more than one class while fetching from database -


i want include 2 classes while fetching. know how 1 class not sure how two.

here including student

var service = dc.service.include("student").orderby(i => i.id); 

i not sure how add both student , program

you can chain multiple include methods.

var service = dc.service.include("student").include("program").orderby(i => i.id); 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -