.NET – Defining Relationships Using EF Core Models
In previous articles, we have seen how data annotations and fluent APIs can be used to configure EF core models. In this article, let's try to see how the relationships…
In previous articles, we have seen how data annotations and fluent APIs can be used to configure EF core models. In this article, let's try to see how the relationships…
There are two ways to configure validation rules and schema definition rules for EF core models. First one, is using attributes, which we have already seen in previous article. The…
In previous article, we have created a class library and created a UniversityContext. This context had only one model, Student. The POCO class used for this model was very simple,…
In previous post, we have discussed what is migration and what are some basic dotnet CLI commands which can be used for adding / removing migrations. Practically, those commands cannot…
Entity Framework Core is an ORM (object relational mapper) which can be used to access data from various data sources. Entity Framework was the initial framework which was part of…
AutoMapper is one of the widely used package. Especially when new project is setting up, this is generally used to speed up the development. Let's see how to configure AutoMapper…
In this article, let's try to see how the default order of execution can be changed using IOrderedFilter interface. Default Execution Order We already have seen that filters can be…
In previous post, we discussed about filter pipeline processes the requests. We also have seen different types of filters and when they are invoked. In this article, let's have a…
In this article, let's discuss about filter pipeline, a chain that executes between the routing middleware and the selected action. What is it ? In previous article, we have seen…
When a request is received by .NET Core web API, it goes through a chain of middlewares. Every middleware add some feature in the request pipeline on top of previous…
In previous articles, we have seen how content negotiation works. We also have seen how additional formatters can be configured to support different types of formatting. In this article, we…
In previous article, we have seen that accept header from http request and return type of action decides how the response would be formatted. In this article, we are going…