Update TDengine

This commit is contained in:
sunkaixuan
2023-08-08 18:14:40 +08:00
parent 9a5f4fe03d
commit 6522c5cb3d
4 changed files with 50 additions and 2 deletions

View File

@@ -57,6 +57,31 @@ namespace OrmTest
voltage = 11
}).ExecuteCommand();
db.Insertable(new List<MyTable02>() {
new MyTable02()
{
ts = DateTime.Now,
current = Convert.ToSingle(1.1),
groupId = 1,
isdelete = true,
name = "haha",
location = "aa",
phase = Convert.ToSingle(1.1),
voltage = 11
},
new MyTable02()
{
ts = DateTime.Now,
current = Convert.ToSingle(1.1),
groupId = 1,
isdelete = true,
name = "haha",
location = "aa",
phase = Convert.ToSingle(1.1),
voltage = 11
}
}).ExecuteCommand();
//查询子表(主表字段也能查出来)
var list = db.Queryable<MyTable02>().ToList();