mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-03 15:00:53 +08:00
Updated With Sql (markdown)
@@ -21,6 +21,8 @@ Define entity class:
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? Age { get; set; }
|
||||
|
||||
public DateTime? Birthday { get; set; }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -106,11 +108,11 @@ var list4 = _fsql.Select<object>()
|
||||
.WhereIf(true, "1=1")
|
||||
.Page(1, 10)
|
||||
.OrderBy("ID DESC")
|
||||
.ToList<TestClssDto>("ID,Age");
|
||||
.ToList<TestClssDto>("ID,Age,BIRTH_DAY as Birthday");
|
||||
```
|
||||
|
||||
```sql
|
||||
SELECT ID, Age
|
||||
SELECT ID, Age,BIRTH_DAY as Birthday
|
||||
FROM(select * from TestClass ) a
|
||||
WHERE(1 = 1)
|
||||
ORDER BY ID DESC
|
||||
|
||||
Reference in New Issue
Block a user