Skip to content

Error: No connection string named ....could be found in the application config file. #11

@khuzemakanore

Description

@khuzemakanore

I created a new class project .Net Framework 4.5.2

I have generated the POCO class using EntityFramework Reverse POCO Code First Generator.

And created a app.config file and specified connection as mentioned below : -

    <connectionStrings>
        <add name="DBConnection" connectionString="Server=.;Database=Zza;Trusted_Connection=true" ProviderName="System.Data.SqlClient"/>
    </connectionStrings>

But MetaDataGenerator not accepting the above connection string and gives error.

"No connection string named DBConnection could be found in the application config file."

The DBContext.cs has following constructor

public DBContext() : base("Name=DBConnection") { }

Please can you guide ...

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