mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Add unit test
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
///<summary>
|
||||
///畜禽分段信息
|
||||
///</summary>
|
||||
[SugarTable("insurance_section_config")]
|
||||
public class InsuranceSectionConfig
|
||||
{
|
||||
public InsuranceSectionConfig()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:分段ID
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "分段ID", IsNullable = false)]
|
||||
public int insurance_section_id { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:畜种细分编码
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "畜种细分编码", Length = 10, IsNullable = true)]
|
||||
public string category_code { get; set; }
|
||||
}
|
||||
}
|
43
Src/Asp.Net/SqlServerTest/UnitTest/Models/001/ShouJi.cs
Normal file
43
Src/Asp.Net/SqlServerTest/UnitTest/Models/001/ShouJi.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
///<summary>
|
||||
///
|
||||
///</summary>
|
||||
[SugarTable("shouji")]
|
||||
public class ShouJi
|
||||
{
|
||||
public ShouJi()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:收集单流水号
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "收集单流水号", Length = 16)]
|
||||
public string shouji_sysno { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:收集单据号,多个逗号分隔
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "收集单据号,多个逗号分隔", Length = 200)]
|
||||
public string shouji_sn { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:收集单ID
|
||||
/// Default:newid()
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, ColumnDescription = "收集单GUID")]
|
||||
public string shouji_guid { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:收集单ID
|
||||
/// Default:newid()
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "收集单GUID")]
|
||||
public string xuqin_name { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,46 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Demo
|
||||
{
|
||||
///<summary>
|
||||
///
|
||||
///</summary>
|
||||
[SugarTable("shouji_subnum")]
|
||||
public class ShoujiSubnum
|
||||
{
|
||||
public ShoujiSubnum()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// Desc:分段ID
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public int? insurance_section_id { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:收集单ID
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string shouji_guid { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:分段数量
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public decimal? amount { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:预估理赔金额
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public decimal? total_money { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:收集分段ID
|
||||
/// Default:newid()
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string sub_shouji_guid { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
namespace Demo
|
||||
{
|
||||
public class ShoujiViewDto
|
||||
{
|
||||
public string shouji_guid { get; set; }
|
||||
public string xuqin_name { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user