0
私は2つのEFのモデルがあります。たとえば、MedicamentMedicamentsコンテンツの場合LINQクエリ
public class Medicament
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get; set; }
[Required]
public string InternationalName { get; set; }
public ICollection<MedicamentMedicaments> MedicamentMedicamentses { get; set; }
}
public class MedicamentMedicaments
{
[Key]
[Column(Order = 0)]
public Guid MedicamentId { get; set; }
[Key]
[Column(Order = 1)]
public Guid AnalogId { get; set; }
public Medicament Medicament { get; set; }
public Medicament Analog { get; set; }
}
:
- を|メディケアマート| AnalogId |
- | 1 | 5 |
- | 5 | 3 |
医薬品類似物質をLINQクエリで受信したいのですか?
をMedicamentIdまたはAnalogIdカラム –