SqlSugar/Src/Asp.NetCore2/TDengineTest/Models/Unit/CodeFirstTest1.cs

69 lines
2.2 KiB
C#
Raw Normal View History

2023-10-01 20:16:14 +08:00
using SqlSugar.DbConvert;
using SqlSugar.TDengine;
2023-10-01 19:45:43 +08:00
using System;
2023-10-01 15:25:49 +08:00
using System.Collections.Generic;
using System.Text;
namespace TDengineTest
{
2023-10-01 20:16:14 +08:00
2025-03-19 14:20:28 +08:00
public class CodeFirst0311 : STable
2023-10-01 15:25:49 +08:00
{
2023-10-01 19:45:43 +08:00
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
2025-03-19 14:20:28 +08:00
public bool Boolean { get; set; }
public byte Byte { get; set; }
2023-10-01 15:25:49 +08:00
public sbyte SByte { get; set; }
public char Char { get; set; }
2025-03-19 14:20:28 +08:00
public decimal Decimal { get; set; }
public decimal Decimal2 { get; set; }
public double Double { get; set; }
2023-10-01 15:25:49 +08:00
public float Float { get; set; }
2025-03-19 14:20:28 +08:00
public int Int32 { get; set; }
2023-10-01 15:25:49 +08:00
public uint UInt32 { get; set; }
2025-03-19 14:20:28 +08:00
public long Int64 { get; set; }
2023-10-01 15:25:49 +08:00
public ulong UInt64 { get; set; }
2025-03-19 14:20:28 +08:00
public short Int16 { get; set; }
2023-10-01 19:45:43 +08:00
public ushort UInt16 { get; set; }
2023-10-01 15:25:49 +08:00
public string String { get; set; }
2023-10-01 19:45:43 +08:00
[SqlSugar.SugarColumn(Length = 100)]
2023-10-01 15:25:49 +08:00
public string String2 { get; set; }
}
2023-10-01 19:45:43 +08:00
2023-10-01 20:36:31 +08:00
public class CodeFirst01:STable
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
}
2023-11-19 00:03:07 +08:00
[STableAttribute( STableName = "CodeFirstStable", Tags="[{ Name:\"Tag1\",Value:\"1\"}]")]
2023-11-18 23:50:08 +08:00
public class CodeFirstTags44
2023-11-10 14:27:12 +08:00
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
2023-11-18 23:50:08 +08:00
[SqlSugar.SugarColumn(IsIgnore =true)]
public string Tag1 { get; set; }
}
2023-11-19 00:03:07 +08:00
[STableAttribute(STableName = "CodeFirstStable", Tags = "[{ Name:\"Tag1\",Value:\"2\"}]")]
2023-11-18 23:50:08 +08:00
public class CodeFirstTags33
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public string Tag1 { get; set; }
2023-11-10 14:27:12 +08:00
}
2023-10-01 20:36:31 +08:00
public class CodeFirst04
2023-10-01 19:45:43 +08:00
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
2023-10-01 20:50:22 +08:00
}
public class CodeFirst05
{
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
public DateTime Ts { get; set; }
public bool Boolean { get; set; }
}
2023-10-01 19:45:43 +08:00
}