Handle two connection for multiple PC’s (ASP.NET MVC)

I have ASP.NET MVC project.
In WebConfig file I have a connection to local db.
Here is code:

<connectionStrings>
<add name=”DefaultConnection” connectionString=”Data Source=DESKTOP-SV2O11U;Initial Catalog=RIS_Main;Integrated Security=True” providerName=”System.Data.SqlClient” />
<add name=”RIS_MainEntities” connectionString=”metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=DESKTOP-SV2O11U;initial catalog=RIS_Main;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;” providerName=”System.Data.EntityClient” />

But the problem in that I working on two pcs, work and home.
So it has a different name.And I need to change DataSource in >>> DefaultConnection

Is there any variant to keep 2 pcs name in >>> connectionStrings?

Tagged In :

Get help with your homework


image
Haven't found the Essay You Want? Get your custom essay sample For Only $13.90/page

Sarah from studyhippoHi there, would you like to get such a paper? How about receiving a customized one?

Check it out