命名空间 ;using System.ComponentModel.DataAnnotations.Schema;
实体部分
public partial class Student
{
[NotMapped]
public int age { get; set; } =18;
}
命名空间 ;using System.ComponentModel.DataAnnotations.Schema;
实体部分
public partial class Student
{
[NotMapped]
public int age { get; set; } =18;
}
转载于:https://www.cnblogs.com/farmer-y/p/9648081.html