mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update demo
This commit is contained in:
@@ -27,6 +27,7 @@ namespace OrmTest
|
|||||||
db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
|
db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
|
||||||
{
|
{
|
||||||
SqliteCodeFirstEnableDefaultValue = true,
|
SqliteCodeFirstEnableDefaultValue = true,
|
||||||
|
SqliteCodeFirstEnableDescription=true
|
||||||
};
|
};
|
||||||
db.CodeFirst.InitTables<CodeFirstUnitafa12>();
|
db.CodeFirst.InitTables<CodeFirstUnitafa12>();
|
||||||
var xxx=db.DbMaintenance.GetColumnInfosByTableName("CodeFirstUnitafa12", false);
|
var xxx=db.DbMaintenance.GetColumnInfosByTableName("CodeFirstUnitafa12", false);
|
||||||
@@ -35,7 +36,7 @@ namespace OrmTest
|
|||||||
}
|
}
|
||||||
public class CodeFirstUnitafa12
|
public class CodeFirstUnitafa12
|
||||||
{
|
{
|
||||||
[SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
|
[SugarColumn(IsPrimaryKey =true,IsIdentity =true,ColumnDescription ="aa")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[SugarColumn(DefaultValue = "(strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime'))")]
|
[SugarColumn(DefaultValue = "(strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime'))")]
|
||||||
public DateTime Name { get; set; }
|
public DateTime Name { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user