Добавлено: 1 марта 2023 г.
In this article, I’ll show you all the object mapping strategies of EF Core and especially the new one: TPC Inheritance Mapping. TPC mapping is the new feature introduced with Entity Framework Core 7. It’s called Table Per Concrete type inheritance mapping. I’ll explain the EF Core’s inheritance mapping strategies with how the inherited entity and the specific information are saved into a relational database. I’ll also explain which strategy...
далее...
Добавлено: 13 января 2023 г.
We are going to discuss the Unit of Work design pattern with the help of a generic repository and step-by-step implementation using .NET Core 6 Web API.
Agenda
Repository Pattern
Unit of Work
Step-by-step Implementation
Prerequisites
Visual Studio 2022
SQL Server
.NET Core 6 SDK
Repository Pattern
The repository pattern is used...
далее...
Добавлено: 20 ноября 2022 г.
Sometimes we have to perform several queries to the database, put the results into memory, and then process them as needed.
For example, we have a Supplier table and a Customer table. Both tables have a substantial amount of data. We want to combine existing Supplier and Customer data with specific criteria.
Generally, we will perform two queries sequentially: query to the Supplier table first, then query to the Customer table. The...
далее...
Добавлено: 24 октября 2022 г.
Entity Framework Core is recommended and the most popular tool for interacting with relational databases on ASP NET Core. It is powerful enough to cover most possible scenarios, but like any other tool, it has its limitations. Long time people said (not without reason) that Entity Frmaework does not match high load systems and for these scenarios it is better to use Dapper. But time goes by and Entity Framework...
далее...
Добавлено: 10 июля 2021 г.
I've recently gotten into using Docker in my development cycle and I'm really enjoying how much of a wonderful tool it is. One thing that always used to be a pain was setting up a development server to run SQL Server. Now with Docker, I can just spin up a Docker container and I instantly have a SQL Server ready to go.
I recently wrote a blog on Getting Started with...
далее...
Добавлено: 15 июня 2021 г.
Hi everyone, this article include encrypting your database columns with EntityFramework. Your database providers can be MSSQL or PostgreSQL.
Considering that some database columns contain confidential data, it is of great importance that the data is encrypted in case of capture of our database.
In this article, it will be ensured that your “string” type data is kept encrypted in the database and can be displayed automatically by decrypting the relevant data...
далее...