mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update unit test
This commit is contained in:
parent
41cadf3117
commit
6ce8bc5e36
Src/Asp.Net/OracleTest/UnitTest
@ -40,6 +40,13 @@ namespace OrmTest
|
||||
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
|
||||
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
|
||||
Db.CodeFirst.InitTables<UnitADFA13131>();
|
||||
Db.CodeFirst.InitTables<UnitIndextest>();
|
||||
}
|
||||
[SqlSugar.SugarIndex("UnitIndextestIndex2", nameof(UnitIndextest.Table1), SqlSugar.OrderByType.Asc)]
|
||||
public class UnitIndextest
|
||||
{
|
||||
public string Table1 { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
public class UnitADFA13131
|
||||
{
|
||||
|
@ -28,8 +28,8 @@ namespace OrmTest
|
||||
var result = db.Insertable(new Test001111() { id = dt }).ExecuteCommand();//用例代码
|
||||
var res = db.Queryable<Test001111>().WhereClass(new Test001111() { id = dt }).ToList();
|
||||
//Console.WriteLine(result);
|
||||
Console.WriteLine("用例跑完");
|
||||
Console.ReadKey();
|
||||
//Console.WriteLine("用例跑完");
|
||||
//Console.ReadKey();
|
||||
}
|
||||
//建类
|
||||
public class Test001111
|
||||
|
Loading…
Reference in New Issue
Block a user