Hi. we have a project which is using a database-first generated model. When executing a query I receive the following error:
Unable to cast object of type 'ReliableDbProvider.SqlAzure.SqlAzureConnection' to type 'System.Data.SqlClient.SqlConnection'.
Do you have any thoughts on how to fix this? Connectionstring is posted below.
add name="Entities" connectionString="metadata=res:///Model1.csdl|res:///Model1.ssdl|res://*/Model1.msl;provider=ReliableDbProvider.SqlAzure;provider connection string="data source=blabla.database.windows.net;initial catalog=blabla;persist security info=True;user id=bla@blabla;password=bla;App=EntityFramework"" providerName="System.Data.EntityClient"
Hi. we have a project which is using a database-first generated model. When executing a query I receive the following error:
Unable to cast object of type 'ReliableDbProvider.SqlAzure.SqlAzureConnection' to type 'System.Data.SqlClient.SqlConnection'.
Do you have any thoughts on how to fix this? Connectionstring is posted below.
add name="Entities" connectionString="metadata=res:///Model1.csdl|res:///Model1.ssdl|res://*/Model1.msl;provider=ReliableDbProvider.SqlAzure;provider connection string="data source=blabla.database.windows.net;initial catalog=blabla;persist security info=True;user id=bla@blabla;password=bla;App=EntityFramework"" providerName="System.Data.EntityClient"