Skip to content

Entity framework database first #4

Description

@michelsmit

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions