mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update user test case
This commit is contained in:
parent
03b11430bf
commit
f98f932533
@ -5,6 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Drawing;
|
||||
using SqlSugar;
|
||||
using System.Web;
|
||||
namespace OrmTest
|
||||
{
|
||||
public class UnitTestOneToOne
|
||||
@ -50,10 +51,19 @@ namespace OrmTest
|
||||
.IncludeLeftJoin(x => x.BackSale)
|
||||
.Where(x => x.BackSale.IsOn == true)
|
||||
.Sum(x => x.BackSale.Money);
|
||||
|
||||
var list=db.Reportable(new List<Unitguidsda>() {
|
||||
new Unitguidsda()
|
||||
}).ToQueryable().ToList();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class Unitguidsda
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
}
|
||||
public static class SqlSugarExtension
|
||||
{
|
||||
public static List<T> Where<T>(this T thisValue, Func<T, bool> whereExpression) where T : class, new()
|
||||
|
Loading…
Reference in New Issue
Block a user