阅读背景:

插入重复值的实体框架6

来源:互联网 

I have following two entities:

我有以下两个实体:

public class Artist
{
    [Key]
    public string ArtistId { get; set; }
    public string Name { get; set; }

    public virtual ICollection<Genre> Genres { get; set; }
}

public class Genre
{
    [Key]
    public int GenreId { get; set; }
    public string Name { get; set; }

    public virtual ICollection<Artist> Artist { get; set; }
}
pu



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: