mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 16:18:47 +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.Threading.Tasks;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
using System.Web;
|
||||||
namespace OrmTest
|
namespace OrmTest
|
||||||
{
|
{
|
||||||
public class UnitTestOneToOne
|
public class UnitTestOneToOne
|
||||||
@ -50,10 +51,19 @@ namespace OrmTest
|
|||||||
.IncludeLeftJoin(x => x.BackSale)
|
.IncludeLeftJoin(x => x.BackSale)
|
||||||
.Where(x => x.BackSale.IsOn == true)
|
.Where(x => x.BackSale.IsOn == true)
|
||||||
.Sum(x => x.BackSale.Money);
|
.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 class SqlSugarExtension
|
||||||
{
|
{
|
||||||
public static List<T> Where<T>(this T thisValue, Func<T, bool> whereExpression) where T : class, new()
|
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