Create an Asp.Net Core MVC app with the repository pattern Part 1 – Create the model

So let’s create an ASP.NET Core MVC app that also implements the repository pattern. You can follow along here. First create the models. This is a coffee app where a customer can order coffee. Great work! Now in the next post we’ll create an interface.

1 min read

Create an Asp.Net Core MVC app with the repository pattern Part 5 – Create a Controller that implements the order interface.

Now inside the Startup.cs of the MVC app tell the app that any time someone asks for IEmployeerepository it provides the mock repository. So the power of a repository is now that any time you want to change the source data you can just change this one line of code with another repository. Now in […]

1 min read