0
使用EF5和遷移。我想添加一個屬性到我的連接表ProjectUser。我如下設置模型,但遷移不會生成該屬性。謝謝或想法,不勝感激。實體框架5添加屬性以加入表
User {
public int UserGuid { get; set; }
....
public virtual IColllection<Project> Projects { get; set; }
}
Project {
public int ProjectId { get; set; }
....
public virual ICollection<User> Contacts { get; set; }
}
ProjectUser {
public int Project_ProjectId { get; set; }
public guid User_UserGuid { get; set; }
public string ProjectRoles { get; set; }
}