Add SubInsertable

This commit is contained in:
skx
2020-10-25 18:59:46 +08:00
parent bd8f269caf
commit 2f5e1e3b02
8 changed files with 246 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class SubInsertTest
{
[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; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public SubInsertTestItem1 SubInsertTestItem1 { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public List<SubInsertTestItem2> SubInsertTestItem2 { get; set; }
}
public class SubInsertTestItem
{
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public int TestId { get; set; }
public string Name { get; set; }
}
public class SubInsertTestItem1
{
public string a { get; set; }
}
public class SubInsertTestItem2
{
public int OrderId { get; set; }
public int xid { get; set; }
public string a { get; set; }
}
}