|
|
@ -42,6 +42,7 @@ namespace OrmTest |
|
|
|
var getByWhere2 = db.Queryable<Order>().Where(it => it.Id == DateTime.Now.Year).ToList(); |
|
|
|
var getByFuns = db.Queryable<Order>().Where(it => SqlFunc.IsNullOrEmpty(it.Name)).ToList(); |
|
|
|
var getByFuns2 = db.Queryable<Order>().GroupBy(it => it.Name).Select(it => SqlFunc.AggregateDistinctCount(it.Price)).ToList(); |
|
|
|
var fromatList = db.Queryable<Order>().Select(it=>it.CreateTime.ToString("%Y-%m")).ToList(); |
|
|
|
Console.WriteLine("#### Examples End ####"); |
|
|
|
} |
|
|
|
|
|
|
|