Add user test case

This commit is contained in:
sunkaixuan 2024-03-26 09:00:34 +08:00
parent 48f04091ab
commit c4cfdf0a10
3 changed files with 27 additions and 0 deletions

View File

@ -136,6 +136,7 @@
<Compile Include="UserTestCases\UnitTest\Unitadfafafasd.cs" />
<Compile Include="UserTestCases\UnitTest\UnitAny.cs" />
<Compile Include="UserTestCases\UnitTest\UnitByteArray.cs" />
<Compile Include="UserTestCases\UnitTest\UnitDataTable.cs" />
<Compile Include="UserTestCases\UnitTest\Unitdfadfa.cs" />
<Compile Include="UserTestCases\UnitTest\UnitPgSplit.cs" />
<Compile Include="UserTestCases\UnitTest\UJsonFunc.cs" />

View File

@ -31,6 +31,7 @@ namespace OrmTest
}
public static void Init()
{
UnitDataTable.Init();
UnitAny.Init();
Unitadfafafasd.Init();
UintOneToOneDto.Init();

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
internal class UnitDataTable
{
public static void Init()
{
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<Unitadfadsfa>();
var list=new List<Unitadfadsfa>() { new Unitadfadsfa() { Id=Guid.NewGuid(), Name="a" },
new Unitadfadsfa() { Id=Guid.NewGuid(),Name="a" }};
db.Storageable(list).WhereColumns(it => it.Id).ExecuteCommand();
}
}
public class Unitadfadsfa
{
public Guid Id { get; set; }
public string Name { get; set; }
}
}