Browse Source

Add demo

SqlSugar5
sunkaixuan 2 years ago
parent
commit
43d91014c7
  1. 3
      Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

3
Src/Asp.Net/SqlServerTest/Demo/Demo1_Queryable.cs

@ -186,7 +186,8 @@ namespace OrmTest
var test47 = db.Queryable<Order>().Select(it => new
{
names = SqlFunc.Subqueryable<Order>().Where(z=>z.Id==it.Id).SelectStringJoin(z => z.Name, ",")
names = SqlFunc.Subqueryable<Order>().Where(z=>z.Id==it.Id).SelectStringJoin(z => z.Name, ","),
disCount = SqlFunc.Subqueryable<Order>().DistinctCount(z=>z.Id)
})
.ToList();

Loading…
Cancel
Save