0

I have several project in my solution and you think there are prjBook and prjLibrary. I install EF6 on prjBook and added it(prjBook) to prjLibrary as Reference. when run prjBook alone, everything ok and successfully select and get data but when run from prjLibrary it shows error:"can't find connection string." i know this error for it isn't any field of connection string in app config of prjLibrary . my question clearly is how could i inject connection string of prjBook project to prjLibrary project? for example inject connection string with cod to dbContex of prjBook

2
  • public BookDBEntities() : base("metadata=res://*/BookDataMdel.csdl|res://*/BokDataMdel.ssdl|res://*/BookDataMdel.msl;provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=BookDB;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"") { } Commented Dec 10, 2021 at 8:33
  • still has same error. nobody has an idea?? Commented Dec 10, 2021 at 8:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.