Update exp to sql

This commit is contained in:
skx
2021-01-26 16:30:18 +08:00
parent a82a211088
commit ae11d38ab0
2 changed files with 22 additions and 4 deletions

View File

@@ -87,6 +87,9 @@ namespace OrmTest
.Where(it=>2>it.id).Select(it=> new Order() {
Id=SqlFunc.IIF(2>it.id,1,2)
}).ToList();
var qu4 = Db.Queryable<Order>().OrderBy(it=>it.Id+it.Id).ToList();
}
}
}