[Solved] Cannot implicitly convert type ‘Task’ to ‘Task’

QueryReadOnlyListAsync calls the Dapper extension method QueryAsync, which returns a Task<IEnumerable<T>>. IEnumerable doesn’t implement IReadOnlyList. You can’t return Task<IEnumerable> if the method’s return type is Task<IReadOnlyList>. You need to convert the IEnumerable into a collection that implements IReadOnlyList, such as a regular List: //Make method async so you can await the Task returned by ExecuteWithResiliency … Read more

[Solved] Can’t update decimal field in mssql

The problem was that I called the ExecuteAsync method inside multithreading and the thread was closed before the ExecuteAsync method returned the result. I fixed it by replacing the ExecuteAsync method with the Execute method. The .Wait() didn’t help nor the getawaiter. 1 solved Can’t update decimal field in mssql