mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update demo
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using SqlSugar;
|
||||
using SqlSugar.TDengine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -9,8 +10,17 @@ namespace TDengineTest
|
||||
public partial class ORMTest
|
||||
{
|
||||
public static void InsertUsingTag(SqlSugarClient db)
|
||||
{
|
||||
db.CodeFirst.InitTables<SUsingTagModel>();
|
||||
}
|
||||
[STableAttribute(STableName = "SUsingTagModel", Tag1 = nameof(Tag1))]
|
||||
public class SUsingTagModel
|
||||
{
|
||||
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public DateTime Ts { get; set; }
|
||||
public bool Boolean { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public string Tag1 { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user