Update MySql

This commit is contained in:
sunkaixuan
2018-11-11 15:00:31 +08:00
parent 633e513f57
commit 5dde9dbcf7
4 changed files with 26 additions and 3 deletions

View File

@@ -6,12 +6,13 @@ using System.Text;
namespace OrmTest.Demo
{
[SugarTable("CodeTable", " CodeTable test ")]
public class CodeTable
{
[SugarColumn(IsNullable =false ,IsPrimaryKey =true,IsIdentity =true)]
[SugarColumn(IsNullable =false ,IsPrimaryKey =true,IsIdentity =true,ColumnDescription ="test")]
public int Id { get; set; }
[SugarColumn(Length = 21,OldColumnName = "Name2")]
[SugarColumn(Length = 21,OldColumnName = "Name2",ColumnDescription ="name")]
public string Name{ get; set; }
[SugarColumn(IsNullable = true,Length =11)]
public string IsOk { get; set; }