From 22451db2098019f4025ccc935bb2260876897df4 Mon Sep 17 00:00:00 2001 From: Dmitrii Kollerov Date: Fri, 25 Sep 2026 08:26:41 +0300 Subject: [PATCH] verbosify bad desision --- Repositories/BookRepository.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Repositories/BookRepository.cs b/Repositories/BookRepository.cs index cbd9fe7..797c98e 100644 --- a/Repositories/BookRepository.cs +++ b/Repositories/BookRepository.cs @@ -47,7 +47,12 @@ public class BookRepository : IBookRepository if(request.Index != null) { var interminentQuery = await query.ToListAsync(); - return interminentQuery.Where(x => x.BookIndex.Contains(request.Index)).ToList(); // ничего лучше не придумал + return interminentQuery.Where(x => x.BookIndex.Contains(request.Index)).ToList(); + // решение плохое, но для поиска более хорошего нужно время + // возможно, потребуется изменить тип поля, либо раскидывать xml по другим таблицам. + // также возможно что в TransactSql этот момент учтен и поиск будет работать нативно + // но TransactSql у меня не раскатан, а Postgre уже стоит и крутится; так быстрее и проще в текущей ситуации + // xml ~~ xml - operation does not exist //query = query.Where(x => x.BookIndex.Contains(request.Index)); }