mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 21:32:04 +08:00
Update demo
This commit is contained in:
@@ -55,16 +55,25 @@ namespace TDengineTest
|
||||
|
||||
private static void CodeFirst5(SqlSugarClient db)
|
||||
{
|
||||
|
||||
STable.Tags = new List<ColumnTagInfo>()
|
||||
{
|
||||
new ColumnTagInfo(){ Name="t1", Value="1" },
|
||||
new ColumnTagInfo(){ Name="t2",Value="2"}
|
||||
};
|
||||
|
||||
db.CodeFirst.InitTables<CodeFirstTags33>();
|
||||
|
||||
db.Insertable(new CodeFirstTags33()
|
||||
{
|
||||
Boolean = true,
|
||||
Ts = DateTime.Now
|
||||
}).ExecuteCommand();
|
||||
|
||||
|
||||
db.CodeFirst.InitTables<CodeFirstTags44>();
|
||||
|
||||
db.Insertable(new CodeFirstTags44()
|
||||
{
|
||||
Boolean = true,
|
||||
Ts = DateTime.Now
|
||||
}).ExecuteCommand();
|
||||
|
||||
|
||||
db.CodeFirst.InitTables<CodeFirstTags1>();
|
||||
STable.Tags = null;
|
||||
|
||||
}
|
||||
|
||||
private static void CodeFirst1(SqlSugarClient db)
|
||||
|
||||
Reference in New Issue
Block a user