Add unit test

This commit is contained in:
sunkaixuan 2023-11-03 17:28:56 +08:00
parent a02de273db
commit cef8cd4c8b
2 changed files with 26 additions and 0 deletions

View File

@ -31,6 +31,7 @@ namespace OrmTest
}
public static void Init()
{
UnitAddRemark.Init();
UnitSplitTask.Init();
UnitBulkMerge.Init();
UnitUpdateNavOneToOneFalse.Init();

View File

@ -0,0 +1,25 @@
using OrmTest;
using System;
using System.Collections.Generic;
using System.Text;
namespace SqlSugar
{
internal class UnitAddRemark
{
public static void Init()
{
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<UnitAddRemark2>();//添加表
db.DbMaintenance.AddColumnRemark("id", "UnitAddRemark2", "AA");
db.DbMaintenance.AddColumnRemark("id", "UnitAddRemark2", "");
db.DbMaintenance.AddColumnRemark("id", "UnitAddRemark2", "AA");
db.DbMaintenance.DropTable<UnitAddRemark2>();//删除表
}
public class UnitAddRemark2
{
public int id { get; set; }
public string name { get; set; }
}
}
}