The exception is more or less clear. Try to debug EF code to figure it out.
I made some debugs many times, so when it comes to like var records = await context.CountOfAny.FromSqlRaw(@"select * from countbooks_bymuallif({0},{1})", fromDate, toDate).ToListAsync(); code, it cause to the exception. However, db function is working within DataGrip postgresql query. I wonder what i should do?
Guys, could someone assist me or give me some ideas?
Debug the EF code.
Nope, you didn't. Read the stack trace and debug the actual reason.
Обсуждают сегодня