How to specify two navigation properties from entity X to the same target entity, Y?

前端 未结 2 1523
青春惊慌失措
青春惊慌失措 2021-01-26 06:09

Consider that I have an Instructor class:

public class Instructor
{
    public InstructorTypesEnum Type { get; set; }

    public virtual ICollectio         


        
2条回答
  •  不思量自难忘°
    2021-01-26 06:44

    What's more - you shouldn't use GUID as entity ID. It hurts performance.

    public Guid InstructorId { get; set; }
    

    Try to replace it with for example int.

提交回复
热议问题