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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -