mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add unit test
This commit is contained in:
parent
a02de273db
commit
cef8cd4c8b
@ -31,6 +31,7 @@ namespace OrmTest
|
||||
}
|
||||
public static void Init()
|
||||
{
|
||||
UnitAddRemark.Init();
|
||||
UnitSplitTask.Init();
|
||||
UnitBulkMerge.Init();
|
||||
UnitUpdateNavOneToOneFalse.Init();
|
||||
|
25
Src/Asp.NetCore2/MySqlTest/UnitTest/UnitAddRemark.cs
Normal file
25
Src/Asp.NetCore2/MySqlTest/UnitTest/UnitAddRemark.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user