mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 21:32:04 +08:00
Update Demo
This commit is contained in:
46
Src/Asp.NetCore2/TDengineTest/Models/Unit/MyTable02_NS.cs
Normal file
46
Src/Asp.NetCore2/TDengineTest/Models/Unit/MyTable02_NS.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
/// <summary>
|
||||
/// 纳秒
|
||||
/// </summary>
|
||||
[SugarTable("MyTable02")]
|
||||
public class MyTable02_NS
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true,SqlParameterDbType =typeof(DateTime19))]
|
||||
public DateTime ts { get; set; }
|
||||
public float current { get; set; }
|
||||
public bool isdelete { get; set; }
|
||||
public string name { get; set; }
|
||||
public int voltage { get; set; }
|
||||
public float phase { get; set; }
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
||||
public string location { get; set; }
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
||||
public int groupId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 微秒
|
||||
/// </summary>
|
||||
|
||||
[SugarTable("MyTable02")]
|
||||
public class MyTable02_US
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, SqlParameterDbType = typeof(DateTime16))]
|
||||
public DateTime ts { get; set; }
|
||||
public float current { get; set; }
|
||||
public bool isdelete { get; set; }
|
||||
public string name { get; set; }
|
||||
public int voltage { get; set; }
|
||||
public float phase { get; set; }
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
||||
public string location { get; set; }
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
|
||||
public int groupId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user