Исходный код вики Сценарии
Версия 1.2 от Alexandr Fokin на 2024/03/04 23:51
Скрыть последних авторов
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | |(% style="width:211px" %)Модификация существующего IQueryable|(% style="width:1243px" %)Remove OrderBy from an IQueryable<T> |
| 2 | [[https:~~/~~/stackoverflow.com/questions/10591010/remove-orderby-from-an-iqueryablet>>https://stackoverflow.com/questions/10591010/remove-orderby-from-an-iqueryablet]] | ||
| |
1.2 | 3 | |(% style="width:211px" %)Перенос IQueryable между DbContext|(% style="width:1243px" %)((( |
| 4 | Change DataContext of IQueryable | ||
| 5 | [[https:~~/~~/stackoverflow.com/questions/30706282/change-datacontext-of-iqueryable>>https://stackoverflow.com/questions/30706282/change-datacontext-of-iqueryable]] | ||
| 6 | |||
| 7 | {{code language="c#"}} | ||
| 8 | typedQuery = _dbContext.Set<TEntity>() | ||
| 9 | .AsQueryable() | ||
| 10 | .Provider | ||
| 11 | .CreateQuery<TProjection>(typedQuery.Expression) | ||
| 12 | {{/code}} | ||
| 13 | ))) | ||
| |
1.1 | 14 | |(% style="width:211px" %) |(% style="width:1243px" %) |
| 15 | |||
| 16 |