Saturday, December 1, 2012

Entity framework include for child table



var widgetDTO = DBContext.test_widget                    .Include("test_Parent.test_Child").Where(p => p.ID == wID).ToList();


In the above code  ".Include("test_Parent.test_Child")" ---
test_Child is the child table and
test_Parent Parent table.

No comments:

Post a Comment

Comments

Protected by Copyscape Plagiarism Software