Добавлено: 31 октября 2023 г.
In the article, we are going to examine how to optimize SQL queries and improve query performance by using SQL query optimization tips and techniques and many others.
Before going towards the main topic of SQL Query optimization, let us first understand the actual processing of query:
Query Processing
Query processing is defined as the process of extracting data from a database through a series of phases. This involves converting queries written in...
далее...
Добавлено: 26 октября 2023 г.
Entity Framework Core Features in 2023
EF Core 2023 has rolled out some pretty cool stuff, and I’m excited to share it with you. So, grab a cup of coffee, and let’s get started!
1. Cosmos DB Provider Improvements
Azure Cosmos DB and EF Core are like two peas in a pod, but with EF Core 8.0, they’re even cozier. Enhanced support means tighter integration and smoother operations.
Code Example:
var cosmosOptionsBuilder = new DbContextOptionsBuilder<MyContext>()
...
далее...
Добавлено: 10 сентября 2023 г.
MSSQL and MySQL are two of the most popular relational database management systems in the world
Nowadays, even when businesses are selling comparable products, rivalry between them is fairly widespread. In a market where there is competition, a company’s profitability is influenced by its ability to offer the finest services and goods and to attract the largest possible customer base for those items. The decision between MySQL and MSSQL Server is...
далее...
Добавлено: 13 июня 2023 г.
One of the things that we may struggle with as developers when working on a green field project is our stack. Choosing the right tech to solve a problem can be a harrowing experience. Databases, in particular, can be a bit tough if we’re unsure how our data is going to be used.
This article aims to assist you in choosing the right type of database. We explore the differences between...
далее...
Добавлено: 8 мая 2023 г.
Dapper is a lightweight ORM (Object-Relational Mapping) framework for .NET Core and is commonly used to query databases in .NET Core applications. Here are some of the advanced features of Dapper in .NET Core:
Multi-Mapping: Dapper allows you to map multiple database tables to a single class. This is useful when you need to retrieve data from multiple tables and map them to a single object.
...
далее...
Добавлено: 10 марта 2023 г.
Writing unit test code when using the Dapper ORM tool for database operations with ASP.NET Core Web Application
How to write unit tests with Dapper
Writing unit tests when using the Dapper ORM tool for database operations in an ASP.NET Core Web Application can be complex. This is because Dapper uses static extension methods that are difficult to mock when testing services.
There is one approach to resolving this problem. We need to...
далее...
Добавлено: 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...
далее...
Добавлено: 11 января 2023 г.
Database Setup with DbUp + Postgresql + Dapper in ASP.Net Core
In this tutorial, we are going to explore how we can setup our database on startup when using Dapper for accessing database.
When using Dapper, one of the key learning I came to know is that we have to have database and tables already created in advance in order to read/write data.
So we have to write some kind of migration logic...
далее...