mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-07 17:00:52 +08:00
Updated Query Data (markdown)
@@ -47,6 +47,7 @@ DynamicFilterInfo dyfilter = JsonConvert.DeserializeObject<DynamicFilterInfo>(@"
|
||||
]
|
||||
}");
|
||||
fsql.Select<VM_District_Parent>().WhereDynamicFilter(dyfilter).ToList();
|
||||
|
||||
//SELECT a.""Code"", a.""Name"", a.""ParentCode"", a__Parent.""Code"" as4, a__Parent.""Name"" as5, a__Parent.""ParentCode"" as6
|
||||
//FROM ""D_District"" a
|
||||
//LEFT JOIN ""D_District"" a__Parent ON a__Parent.""Code"" = a.""ParentCode""
|
||||
@@ -113,7 +114,7 @@ fsql.Select<VM_District_Parent>().WhereDynamicFilter(dyfilter).ToList();
|
||||
| ForUpdate | \<this\> | bool | Exclusive update lock, adapted to different databases, see notes for details |
|
||||
| AsQueryable | IQueryable | | Convert `ISelect` to `IQueryable`. This method is mainly used for extensions, for example: Abp's `IRepository GetAll()` interface method needs to return an `IQueryable` object. Note: `IQueryable` method is more polluted, please try to avoid this conversion. |
|
||||
| InsertInto | int | string, Lambda | Convert the query to `INSERT INTO tableName SELECT ... FROM t` and perform the insert. |
|
||||
| ToUpdate | IUpdate\<TEntity\> | 无 | Convert the query to `IUpdate<TEntity>` |
|
||||
| ToDelete | IDelete\<TEntity\> | 无 | Convert the query to `IDelete<TEntity>` |
|
||||
| ToTreeList | List\<TEntity\> | 无 | Return the data of the parent-child relationship in the form of a TreeList |
|
||||
| ToUpdate | IUpdate\<TEntity\> | - | Convert the query to `IUpdate<TEntity>` |
|
||||
| ToDelete | IDelete\<TEntity\> | - | Convert the query to `IDelete<TEntity>` |
|
||||
| ToTreeList | List\<TEntity\> | - | Return the data of the parent-child relationship in the form of a TreeList |
|
||||
| AsTreeCte | ISelect | (up, pathSelector, level) | Recursively query the parent-child relationship table |
|
||||
Reference in New Issue
Block a user