relationControls内のものと重複するDBContextのすべてのNWatchRelationレコードを取得します。 同じId、RelatedNodeId、およびRelationType(enum:int)は、一致とみなされるものでなければなりません。Entity Framework LINQ別のコレクションの一部を取得する
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();
何が質問ですか? –