ef core code first 忽略映射数据库字段NotMapped 电脑版发表于:2022/6/19 17:12 ef core code first 忽略映射数据库字段非常简单使用NotMapped特性即可。 ``` [NotMapped] public string Status { get; set; } ``` ``` [NotMapped()] public int? Age { get; set; } ```