mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-20 03:49:55 +08:00
Mysql创建表时,增加字段注释。
This commit is contained in:
@@ -11,8 +11,9 @@ namespace OrmTest
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDescription ="名称")]
|
||||
public string Name { get; set; }
|
||||
[SugarColumn(ColumnDescription = "价格")]
|
||||
public decimal Price { get; set; }
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user