小编Abh*_*hit的帖子

EF Core 6 无法确定导航表示的关系

我的 DbContext 中有以下表:

    public class Employee 
    {
        [Key]
        public int Id { get; set; }
        public long EmployeeCode { get; set; }
        public UserRole Role { get; set; }
        public string? Salutation { get; set; }
        public string? FirstName { get;set; }
        public string? MiddleName { get;set; }
        public string? LastName { get;set; }
        public string? DisplayName { get; set; }  
        public virtual Address? Address { get; set; }
        public byte[]? Image { get; set; } = null;
        public DateTime …
Run Code Online (Sandbox Code Playgroud)

asp.net entity-framework-core .net-6.0

3
推荐指数
1
解决办法
4464
查看次数

标签 统计

.net-6.0 ×1

asp.net ×1

entity-framework-core ×1