标签: c# entity-framework
我在实体框架中创建了一个对象,并希望在事后包含一些相关的类。我该怎么办?或者我应该搜索哪些关键字?
Order myOrder = context.Orders .Include("Category") .Include("Customer"); // Some logic here myOrder = myOrder.Include("Supplier");