Update user test case

This commit is contained in:
sunkaixuan 2024-02-05 15:12:08 +08:00
parent 03b11430bf
commit f98f932533

View File

@ -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()