mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update unit test
This commit is contained in:
parent
50f262924d
commit
0cdd6eb54c
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user