Update SubInsert

This commit is contained in:
skx
2020-11-13 21:36:52 +08:00
parent fe638adf37
commit cdce78f067
8 changed files with 282 additions and 189 deletions

View File

@@ -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; }
}
}