Using .NET Entity Framework Core with Existing Database
In all previous articles, we have seen how we can start with C# code to define database entities and then how migrations can be applied to create the database. Let's…
In all previous articles, we have seen how we can start with C# code to define database entities and then how migrations can be applied to create the database. Let's…
In past few articles, we have seen how to use entity framework core for defining database entities using data annotations and using fluent API. We have mostly used very basic…
We have seen EF core supports multiple data providers. EF core can use variety of databases as its data store. In this article, we are going to demonstrate how in-memory…
Simple Logging is a new feature of Entity Framework Core and it was introduced in EF Core 5. As the name suggests, it is very simple to enable this type…
In past articles, we have seen code examples which target Microsoft SQL Server database. Entity framework core can be used with multiple plugins (in form of NuGet packages). These plugins…
We have seen some basic concepts related to database concurrency, concurrency control and concurrency conflicts in previous article. Now, in this article, let's have a look at how optimistic concurrency…
In previous articles, we have seen how a BaseRepository can be created, how specification pattern can be implemented and can be extended further to use composite specifications. We also have…
In previous article, we have seen how to implement a specification pattern with generic repository pattern and how it helps. I got a question from one of the reader asking…
In past few articles, we have seen how to design schema using EF core. We also created data access layer, business layer and created a .NET core web API with…
In previous article, we have seen how to save related entities. The post explains how categories association with post can be saved. Same concept can be applied to saving tags…
If you have followed my previous article in this series, we already have setup API, Business and Data access layers for a blog application. This blog application uses entity framework…
In previous article, we have written repositories for blog demo. In this article, let's write business layer and API layer. After adding API layer, we would be able to use…