Complete example of repository pattern in ASP .NET MVC with EF6 using Unity.Mvc3 dependency framework
First of all change the connection string in Web.config file and then go for submit update-database terminal command to make your database up to date.