Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 eSQL 编写查询,其中我的实体具有导航属性。我无法在查询中包含这些导航属性,即使在 Linq to SQL 中我们有这个(包含方法)。
在 eSQL 中如何实现?
像这样:
string esql = "Select value e from EFEntities.MyDataEntity as e"; ObjectQuery<Data.MyDataEntity> query = c. CreateQuery<Data.MyDataEntity>(esql). Include("MyNavigationProperty"); List<Data.MyDataEntity> entities = query.ToList();