Update demo

This commit is contained in:
sunkaixuan
2025-02-26 15:10:18 +08:00
parent 5962ce982c
commit 128a7ac8a3
2 changed files with 13 additions and 5 deletions

View File

@@ -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; }
}
}
}