mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 linq to sql 的查询语法,以及单元测试;
This commit is contained in:
@ -88,6 +88,18 @@ namespace FreeSql.Tests {
|
||||
|
||||
[Fact]
|
||||
public void Test1() {
|
||||
var linqto1 =
|
||||
from p in g.sqlite.Select<Order>()
|
||||
where p.Id >= 0
|
||||
// && p.OrderDetails.AsSelect().Where(c => c.Id > 10).Any()
|
||||
orderby p.Id descending
|
||||
orderby p.CustomerName ascending
|
||||
select new { Name = p.CustomerName, Length = p.Id };
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var testddd = new TestEntity {
|
||||
Test = 22,
|
||||
|
Reference in New Issue
Block a user