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
Post a Comment