📜  EF 不会创建列 RULE - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.342000             🧑  作者: Mango

代码示例1
using System.ComponentModel.DataAnnotations;

public class Student
{
    private int _age = 0;

    public int StudentId { get; set; }
    public string StudentName { get; set; }
    public string City { get{ return StudentName;}  }
    public int Age { set{ _age = value;}  }
}