none
No database connection has been configured for this model - edmx Add function import RRS feed

  • Question

  • I am not able to add function import and cretae complex type  for my imported stored proc in my edmx project. Every time i try to add function import , i get the same message "No database connection has been configured for this model " though i have already added the connection string in my app.config but it's not working . Kindly help as i am stuck with this strange problem in entity frmaework 4.
    Monday, May 6, 2013 11:00 AM

Answers

  • Hi mailtopanki,

    Would you like to show how connection string is defined in app.config?

    You can double check in Model Browser whether there is the correct value in Connection String property of the model. If the connection string is empty or has a wrong value, you may try to check connection string in app.config and then update the model from database or try to delete and recreate the model.

    Best regards,


    Chester Hong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, May 9, 2013 1:57 AM
    Moderator