mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update SubInsert
This commit is contained in:
@@ -6,34 +6,47 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public class SubInsertTest
|
||||
public class RootTable0
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore =true)]
|
||||
public SubInsertTestItem SubInsertTestItem { get; set; }
|
||||
public TwoItem TwoItem { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public SubInsertTestItem1 SubInsertTestItem1 { get; set; }
|
||||
public TwoItem2 TwoItem2 { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public List<SubInsertTestItem2> SubInsertTestItem2 { get; set; }
|
||||
public List<TwoItem3> TwoItem3 { get; set; }
|
||||
}
|
||||
|
||||
public class SubInsertTestItem
|
||||
public class TwoItem
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
public int TestId { get; set; }
|
||||
public int RootId { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
public class SubInsertTestItem1
|
||||
public class TwoItem2
|
||||
{
|
||||
public string a { get; set; }
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public string Id { get; set; }
|
||||
public int RootId { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore =true)]
|
||||
public List<ThreeItem2> ThreeItem2 { get; set; }
|
||||
}
|
||||
public class SubInsertTestItem2
|
||||
public class TwoItem3
|
||||
{
|
||||
public int OrderId { get; set; }
|
||||
public int xid { get; set; }
|
||||
public string a { get; set; }
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Desc { get; set; }
|
||||
}
|
||||
public class ThreeItem2
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string TwoItem2Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user