【发布时间】:2016-04-08 18:12:41
【问题描述】:
从 DBContext 中获取与关系集合中的记录重叠的所有 NWatchRelation 记录。 相同的 Id、RelatedNodeId 和 RelationType (enum: int) 应该被视为匹配项。
public class NWatchRelation : INWatchRelation
{
public int Id { get; set; }
public int NodeId { get; set; }
public NWatchNode Node { get; set; }
public int RelatedNodeId { get; set; }
public NWatchNode RelatedNode { get; set; }
public NWatch.NWatchRelationType RelationType { get; set; }
}
INWatchRelation[] relationsCollection = GetRelations();
【问题讨论】:
-
有什么问题?
标签: c# entity-framework linq