mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add user test case
This commit is contained in:
parent
d896c78424
commit
c0d361e588
@ -1,6 +1,7 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
@ -40,6 +41,21 @@ namespace OrmTest
|
||||
jsonname=SqlFunc.JsonField(it.Order,"Name")
|
||||
})
|
||||
.ToList();
|
||||
|
||||
var list3=db.Queryable<UnitJsonTest>().Select(it => new
|
||||
{
|
||||
|
||||
Order1 = new UnitJsonTest()
|
||||
{
|
||||
Id=it.Id,
|
||||
Order = it.Order
|
||||
}
|
||||
}).ToList();
|
||||
|
||||
if (list3.First().Order1.Order == null|| list3.First().Order1.Order.Id==0)
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user