How to add the EntityFrameWork model to build dll? After the publish application pages that use model does not work. connection strings:
<add name="printerServiceDbConnection" connectionString="workstation id=printerServiceDb.mssql.somee.com;packet size=4096;user id=dmitry_SQLLogin_1;pwd=1svt28jh1f;data source=printerServiceDb.mssql.somee.com;persist security info=False;initial catalog=printerServiceDb" providerName="System.Data.SqlClient" />
<add name="printerServiceDbEntities" connectionString="metadata=res://*/EFModel.csdl|res://*/EFModel.ssdl|res://*/EFModel.msl;provider=System.Data.SqlClient;provider connection string="data source=printerServiceDb.mssql.somee.com;initial catalog=printerServiceDb;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
Add Entity Framework Package via the Package manager console it will automatically reference the dll's
PM> Install-Package EntityFramework -Version 5.0.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.