This commit is contained in:
sunkaixuan 2025-03-08 11:10:01 +08:00
parent 6c98928de5
commit f6c1b9a76a

View File

@ -26,6 +26,7 @@ namespace OrmTest
Db.CodeFirst.InitTables<UnitXXXYYYZZZ>();
Db.CodeFirst.InitTables<unitxxxyyyzzz>();
Db.CodeFirst.As<Bom>("Bom-11").InitTables<Bom>();
Db.CodeFirst.InitTables<UNITCODEFIRST131int, UNITCOdEFIRST131int>();
}
///<summary>
///
@ -137,5 +138,15 @@ namespace OrmTest
[SqlSugar.SugarColumn(DefaultValue="getdate()", IndexGroupNameList =new string[] {"group1" } )]
public DateTime? CreateDate { get; set; }
}
public class UNITCODEFIRST131int
{
public int Id { get; set; }
}
public class UNITCOdEFIRST131int
{
public int Id { get; set; }
[SqlSugar.SugarColumn(DefaultValue = "1")]
public int Name { get; set; }
}
}
}