mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Update unit test
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
using System.Linq;
|
||||||
namespace OrmTest
|
namespace OrmTest
|
||||||
{
|
{
|
||||||
public class CrossDatabase03
|
public class CrossDatabase03
|
||||||
@@ -34,6 +35,15 @@ namespace OrmTest
|
|||||||
.Includes(z => z.Items)
|
.Includes(z => z.Items)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
|
||||||
|
if (list.First().Order == null)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
|
if (list2.First().Items.Count == 0)
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
Console.WriteLine("OrderDb");
|
Console.WriteLine("OrderDb");
|
||||||
foreach (var item in db.GetConnection("OrderDb").DbMaintenance.GetTableInfoList(false))
|
foreach (var item in db.GetConnection("OrderDb").DbMaintenance.GetTableInfoList(false))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user