CodeFirst Support Column Description

This commit is contained in:
sunkaixuan
2018-11-11 13:15:18 +08:00
parent 76c87d796f
commit 0f99c6f20a
7 changed files with 52 additions and 1 deletions

View File

@@ -6,10 +6,12 @@ using System.Text;
namespace OrmTest.Demo
{
[SugarTable("CodeTable", " table CodeTable")]
public class CodeTable
{
[SugarColumn(IsNullable =false ,IsPrimaryKey =true,IsIdentity =true)]
[SugarColumn(IsNullable =false ,IsPrimaryKey =true,IsIdentity =true,ColumnDescription ="XXhaha primary key!!")]
public int Id { get; set; }
[SugarColumn(Length = 21,OldColumnName = "Name2")]
public string Name{ get; set; }