-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No connection string named ....could be found in the application config file. #11
Comments
There are a couple of things you can do. You can add the connection string to MetadataGenerator.exe.config. The MetadataGenerator won't find your app's app.config. You can leave out the connection name and string and ensure that SQL Express is installed on your machine. EF by default tries to connect to SQL Express if no connection string is supplied, or you can set the DB Initializer to null in your DBContext, so EF doesn't try to connect to a DB at all during the metadata generation. |
Thank you very much. It worked with providing connectionString in MetadataGenerator.exe.config. Can we put this thing in readme. BreezeJs is amazing I hope you guys give some love to AureliaJS :) |
I think this certainly should be added to docs.
but the rest of the page describes Code First approach and doesn't give any information about the DB First one. DB First approach seems to be missed from the docs entirely. |
@marcelgood: Could you please expand on your suggestion:
I added the following method to my DBContext:
Is this what you intended as the fix? It still throws:
|
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 : -
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
Please can you guide ...
The text was updated successfully, but these errors were encountered: