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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -