我的 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)