情景再现 假设数据有表Student,EF根据数据库自动更新模块类如下 public partial class Student { public int StudentID { get; set; } public string Name { get; set; } } 此时我们为Student.cs中的名字添加注释 public