Solved : context has changed since the database was created. Consider using Code First Migrations to update the database

Solution: Are you moving changes from Development Environment to staging and you are getting above error, well there is a very quick and simple solution to the problem. Just got to database and delete this table, and it will solve the issue, given that you already have moved the changes to the required tables etc…

Continue Reading

Azure DevOps Server 2019 Stuck at Nuget Restore Step

Solution: The solution is manual one, unless you find any automated solution. It would stuck and display like below: [command]D:\DevOpsAgent\_work\_tool\NuGet\4.9.4\x64\nuget.exe restore D:\DevOpsAgent\_work\2\s\AbC.sln -Verbosity Detailed -NonInteractive -ConfigFile D:\DevOpsAgent\_work\2\Nuget\tempNuGet_247.config So All you need to do is to go to your agent server and go to the directory D:\DevOpsAgent\_work\_tool\NuGet\4.9.4\x64 and execute below command restore D:\DevOpsAgent\_work\2\s\AbC.sln -Verbosity Detailed -NonInteractive…

Continue Reading

How to force Entity Framework to Always Load Fresh copy of Data from the Database

How to force Entity Framework to Always Load Fresh copy of Data from the Database Solution: There are many solution to achieve this result. The most popular and easiest one is to dispose the existing context object and create new one entities.Dispose(); entities = new Entities(); // DbContext but it is not optimal you are…

Continue Reading

Auto documented API using Swagger in dot.net Core to integrate with Azure API Management : Part 2

In this post, we are discussing, how to Get Started with Azure API Management, How we can automate API subscription and management using Azure API Management. This post is a part of the Azure Services series, in this series, we will discuss about Microsoft Cloud Application Architecture and common cloud computing patterns to make application…

Continue Reading