title: How to combine CosmosDB, Entity Framework and OData in .Net Core 6.0?
body: <p>I have an application that uses Entity Framework, OData and SqlServer in a .Net core 3.1 scenario and it works great.  Ultimately I want to use Cosmos DB on Azure in lieu of SQL Server.</p>
  <p>While I can get the app to connect to Cosmos the application fails in calls to FromSqlRaw which the 3.1 compatible libraries do not support.</p>
  <p>I've tried upgrading the project entirely to .Net core 6.0 and while this compiles without error I get problems loading assemblies using a package called MediatR (for injection) when the application starts.</p>
  <p>My question is twofold: Do the .Net 6.0 compatible libraries for Cosmos DB correctly handle FromSqlRaw and/or is there a workaround for the problem if they do not.</p>