Do I need to keep auto generated meta information in connection string for Entity Model ?
-
Hi, I can see that, in my web.config file, my Entity Model set created the following connection string,
<add name="ConnStrDemo" connectionString="metadata=res://*/Models.SDB.csdl|res://*/Models.SDB.ssdl|res://*/Models.SDB.msl;provider=System.Data.SqlClient;provider connection string='Data Source=SDGSDG-PC\SQLEXPRESS;AttachDbFilename="D:\Demo\WebApp\App_Data\myDb.mdf";Integrated Security=True;MultipleActiveResultSets=True'"
providerName="System.Data.EntityClient" />Obviously I need to change the data source part when I will deploy my web application my production server. My production server SQL Connection string should be something like this,
Server=XXX.XXX.XXX.XXX;Database=XXX;User ID=XXXX;Password=XXX;
Now, if I change the connection string from my web.config file to
<add name="ConnStrDemo" connectionString="Server=XXX.XXX.XXX.XXX;Database=XXX;User ID=XXXX;Password=XXX;" />
Will everything simply work in my production server ? I am afraid if the metadata part in the connection string is required by the Entity Framework or not. Please advice. Regards.