why do we use include in mvc [Resolved]

Posted by Kumarkrishna184 under ASP.NET MVC on 2/22/2018 | Points: 10 | Views : 2873 | Status : [Member] | Replies : 2
why do we use include in db.employees.include(deprtment)

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Sheonarayan on: 2/22/2018 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
To get data from foreign key table.

In this case, if you want to get the department name, you can get using item.department.Name.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sophiajoseph on: 2/26/2018 [Member] Starter | Points: 25

Up
0
Down
Hello

MNV use for API Applet.

____________________________
Best <a href=" http://www.cheapassignmenthelp.com/"> cheap assignment help</a> in Australia

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response