mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update TDengineTest
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
using System;
|
||||
using SqlSugar.TDengine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TDengineTest
|
||||
{
|
||||
public class AllCSharpTypes
|
||||
[SqlSugar.SugarTable("AllCSharpTypes09")]
|
||||
public class AllCSharpTypes : STable
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public DateTime Ts { get; set; }
|
||||
public bool Boolean { get; set; }
|
||||
public byte Byte { get; set; }
|
||||
public sbyte SByte { get; set; }
|
||||
public char Char { get; set; }
|
||||
public decimal Decimal { get; set; }
|
||||
[SqlSugar.SugarColumn(Length =18,DecimalDigits =2)]
|
||||
[SqlSugar.SugarColumn(Length = 18, DecimalDigits = 2)]
|
||||
public decimal Decimal2 { get; set; }
|
||||
[SqlSugar.SugarColumn(Length = 18, DecimalDigits = 2)]
|
||||
public double Double { get; set; }
|
||||
@@ -21,9 +25,17 @@ namespace TDengineTest
|
||||
public long Int64 { get; set; }
|
||||
public ulong UInt64 { get; set; }
|
||||
public short Int16 { get; set; }
|
||||
public ushort UInt16 { get; set; }
|
||||
public ushort UInt16 { get; set; }
|
||||
public string String { get; set; }
|
||||
[SqlSugar.SugarColumn(Length =100)]
|
||||
[SqlSugar.SugarColumn(Length = 100)]
|
||||
public string String2 { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class CodeFirst1 : STable
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public DateTime Ts { get; set; }
|
||||
public bool Boolean { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user