i have changed my model context.cs code like :
public productesEntities() : base(DBConnection.ConString)
{
}
replacing "name=productesEntities" to DBConnection.ConString
that DBConnection.ConString read connection string from web.config
problem is that at ecery time i update procedure or add table DBConnection.ConString changed to old
"name=productesEntities"
How can i keep "DBConnection.ConString" not "name=productesEntities"
"name=productesEntities"
How can i keep "DBConnection.ConString" not "name=productesEntities"

Jignesh KumarRank #91 · 22.9K reputationPosted Jan 27, 2020, 9:49 AM EST
mahmoud helalii197 reputationPosted Jan 28, 2020, 9:30 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 28, 2020, 9:45 AM EST