In the last few posts we saw how to hide use of the join entity from two entities with a many-to-many relationship. This post doesn’t add any additional functionality, it just abstracts […]
In the previous post we ended up with entities that hide the join entity from the public surface. However, it was not possible to add or removed entities through this public surface. […]
In the previous post we looked at how many-to-many relationships can be mapped using a join entity. In this post we’ll make the navigation properties to the join entity private so that […]
As of EF Core 2.0, many-to-many relationships without an explicitly mapped join table are not supported. However, all is not lost. In this series of posts I will show: Mapping many-to-many relationships […]
EF Core provides a variety of ways to start tracking entities or change their state. This post gives a brief overview of the different approaches.
EF Core can interact with dependency injection (D.I.) in two ways: A D.I. container can be used to create DbContext instances EF uses a D.I. container internally for its own services The […]
This post describes the different ways to create and configure instances of DbContext in EF Core 1.1. This includes: Calling a constructor directly and overriding OnConfiguring Passing DbContextOptions to the constructor Using […]