c# - If we change default database name in asp.net mvc 4 default example , what are the places we should change? -


I have just changed my database to MVC 4, which is the default sample in Visual Studio 2012. But all the tables in the new database are included, in which the default DB,

I understand some places that should change when we change DB.

, "UserProfile", "User ID", "Username", autoCreateTables: true);

2.Under Model folder "AccountModels.cs"

  Public class UsersContext: DbContext {Public UsersContext (): Base ("HECConnection") {} Public DbSet & lt; UserProfile & gt; UserProfiles {Receive; Set; }} [Table ("UserProfile")]  

Web.config file connection string 3.In

  & lt; ConnectionStrings & gt; & Lt; Name = "HECConnection" connectionstring = add "Data Source = (LocalDb) \ v11.0; Initial List = HEC; Integrated Security = SSPI; AttachDBFilename = | DataDirectory | \ HEC.mdf" ProviderName = "System.Data.SqlClient" / & Gt; & Lt; / ConnectionStrings & gt;  

Should I know the rest of the places that I should change?

I'm sure all of you need to, did you try to rebuild your application ?


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -