2 января 2023 г.
Просмотров: 595
In this article, we are going to discuss the working of CQRS and MediatR patterns and step-by-step implementation using .NET Core 6 Web API.
Agenda
Introduction of CQRS Pattern
When to use CQRS
MediatR
Step-by-step Implementation
Prerequisites
...
далее...
1 января 2023 г.
Просмотров: 903
Here’s the simple step-by-step guide that will teach you how to build and code a generic repository.
There are oodles of design patterns.
Some of these design patterns are floating about on antique blogs full of mad logic. They’re ridiculous enough to make the entire modern cloud rub its belly in roars...
далее...
1 января 2023 г.
Просмотров: 572
New and old ways of creating your own exceptions in dotnet with C# 11 and .NET 7.
Let’s talk about building custom exceptions in C# code and why you’d want to do that. We’ll cover the traditional way as well as a newer way you might want to do this using...
далее...
1 января 2023 г.
Просмотров: 668
By software engineering standards, ASP.NET Web Forms can be considered old school. Perhaps I’m aging myself with that statement, but its true. From a software perspective, even 10 years begins to show its age. I started to use Web Forms the year after they were introduced by Microsoft in 2003.
Most...
далее...
28 декабря 2022 г.
Просмотров: 427
print media queries
Вы можете стилизировать версию вашего сайта для печати с помощью media query:
@media print {
* {
background-color: transparent;
color: #000 ;
box-shadow: none;
text-shadow: none;
}
}
gradient text
h1 {
background-image: linear-gradient(to right, #C6FFDD, #FBD786, #f7797d);
background-clip: text;
color: transparent;
}
Улучшаем media defaults
Когда пишите css reset файлик, добавьте настройки для...
далее...
27 декабря 2022 г.
Просмотров: 416
Часто бывает что вам нужно протестировать какую то функцию или метод, однако подобрать имя для теста бывает часто затруднительно. Для этого в этой статье мы рассмотрим несколько самых используемых подходов к именованию Unit тестов.
Ниже приведены несколько популярных условных обозначений, которые, как установлено, используются большинством разработчиков:
MethodName_StateUnderTest_ExpectedBehavior:
Существуют аргументы против этой...
далее...
26 декабря 2022 г.
Просмотров: 387
Introduction
Do you find yourself not having enough time in a day? Why isn't the work getting done? And why is it taking so long? If these questions sound familiar, you're not alone. Productivity is very important also while working from home. Staying productive at work can be a challenge, but there...
далее...
25 декабря 2022 г.
Просмотров: 719
This article will look at the differences between static and readonly C# fields. Basically, a static readonly field can never be replaced by an instance of a reference type. In contrast, a const constant object cannot be replaced by a new one. You will learn what the difference is and...
далее...
7 декабря 2022 г.
Просмотров: 584
Keeping our SQL server in a healthy state is a matter of concern for sure. Here users can learn the top 11 SQL server maintenance plan best practices that experts, DBAs, architects, and developers follow. No doubt that users often face difficulties with their SQL server. However, with these practices...
далее...
5 декабря 2022 г.
Просмотров: 735
We are going to discuss Caching in .NET Core and how it works. So, we look at the following things one by one.
Introduction of Caching.
What is Cache.
Types of cache.
Cache Implementation.
So, let’s start one by...
далее...