This commit is contained in:
sunkaixuan
2018-11-13 01:51:36 +08:00
parent 3055a3de16
commit bd6de96e4e
6 changed files with 92 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ namespace OrmTest.Models
[SugarTable("STudent")]
public class Student
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID",ColumnDescription ="主键")]
public int Id { get; set; }
public int? SchoolId { get; set; }
public string Name { get; set; }