The model backing the ‘‘ context has changed since the database was created. Consider using Code First Migrations

DB Context has changed I was working with an example in Entity Framework 5 and ran across this commonly seen issue that DB context has changed, especially after changing my Books model. The model backing the ‘BooksDbContext’ context has changed since the database was created. Consider using Code First Migrations This really mean that my […]

String is immutable

Someone asked me an interesting question. String is immutable. So how can we reassign a value to a string variable? Example of string immutable // assign a value to a string variable string firstname = “John”; // string has immutability, but we can still change the value? how? firstname = “Matt”; The computer allocates memory […]