- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
/// <summary>
/// Sql-ограничение на конструкцию in: 2160 параметров в одном запросе
/// </summary>
/// <param name="queries">queries</param>
/// <returns></returns>
private async IQueryable<Department> GetDataRecursiveByQuery(params string[] queries)
{
if (queries.Any())
{
var filterQueries = queries.ToList().Take(2160);
var departments = await FilterDepatments(filterQueries.ToArray());
var nextFilterQueries = queries.Except(filterQueries);
return departments.AddRange(GetDataRecursiveByQuery());
}
}