Updated Query Data (markdown)

AlexLEWIS
2021-08-20 11:23:25 +08:00
parent b9b06f2cb4
commit 5dc90adfa6

@@ -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 |