- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am developing a C# AutoCAD plugin that needs to connect to SQL database to save and retrieve data from it.
when i tried to use the database from the plugin i got this error "No connection string named 'QSurvEntities' could be found in the application config file".
I tried to connect to the database through DBCONNECT but i got the same error.
Can I add the following connection string in AutoCAD configuration file using AutoCAD API ?
<connectionStrings>
<add name="QsurvEntities" connectionString="metadata=res://*/QsurveEntityModel.csdl|res://*/QsurveEntityModel.ssdl|res://*/QsurveEntityModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.;Initial Catalog=Qsurv;Integrated Security=True;App=EntityFramework"" providerName="System.Data.EntityClient"/>
</connectionStrings>
Solved! Go to Solution.

