How to Unapply the Last EF Core Migration
Many of us have been working on projects which use EF Core for data access. When the project is in its initial stages, generally there are a lot of modifications…
Many of us have been working on projects which use EF Core for data access. When the project is in its initial stages, generally there are a lot of modifications…
I already have discussed briefly about InMemory database provider for EF Core in one of the past articles. That article was a small step by step guide to explain how…
In last few articles, I have been mostly writing about .NET Entity Framework Core. In almost every article, there is a demo and the demo source code was provided with…
Now a days, many real world the applications use the concept of soft-delete. This means the entity is not actually deleted from the database, but it is updated and a…
A database may contain various constructs - tables, views, stored procedures, functions, etc. We already have seen how tables can be mapped to C# EF core models, by defining a…
Sometimes applications have to perform multiple operations on the database. Traditionally, database level transactions are used by applications in order to ensure atomicity of such operations. In this article, let's…
In recent posts, I have been writing about EF Core concepts. EF Core code first approach allows to write C# code first and then this C# code can be then…
I am writing about .NET EF core since past few weeks and if you have followed the series, you may already have seen the article about what are migrations and…
Entity Framework core exposes some events via DbContext and we have seen how those events can be used. In this article, we are going to have a look at another…
We have seen how queries are evaluated and entities are tracked by EF Core. All operations performed on tracked entities are performed on an in memory instance of entity. The…
In one of the previous posts, we have seen the an approach which can be used to troubleshoot performance issues. In this article, let's try to understand how a query…
We have seen what is identity resolution and how it is used by EF core to track the entities in memory. AsNoTracking is very common option suggested to make querying…