小编Ser*_*rko的帖子

如果 EF Core 5,则以多对多关系播种数据

我有用户实体

public class User
{
    public int UserId { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Email { get; set; }
    public string Password { get; set; }

    public ICollection<Technology> Technologies { get; set; } = new List<Technology>();
}
Run Code Online (Sandbox Code Playgroud)

我有技术实体

public class Technology
{
    public int TechnologyId { get; set; }
    public string TitleTechnology { get; set; }
    public int GroupId { get; set; }
    public Group Group …
Run Code Online (Sandbox Code Playgroud)

c# asp.net entity-framework-core

10
推荐指数
1
解决办法
1万
查看次数

标签 统计

asp.net ×1

c# ×1

entity-framework-core ×1