sqlkata / querybuilder

SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
https://sqlkata.com
MIT License
3.12k stars 502 forks source link

Adding .ConfigureAwait(false) to async library code #556

Open BitWizJason opened 2 years ago

BitWizJason commented 2 years ago

Missing .ConfigureAwait(false) on async method calls was causing deadlocks in our application. Added modifier to all async methods in QueryBuilder and SqlKata.Execution libraries. Also added ConfigureAwaitChecker.Analyzer nuget package to help enforce continued use of .ConfigureAwait(false) through warnings in the code if it is missing. Nuget package added to both projects.