Tüm ilişkiyi birleştiren DBContext'in tüm NWatchRelation kayıtlarını toplayınCollection. Aynı Kimlik, RelatedNodeId ve RelationType (enum: int) bir eşleşme olarak kabul edilir.Entity Framework LINQ Tüm öğeleri bir başka koleksiyonun parçası olun
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();
Soru nedir? –