Question 1: What is CQRS design pattern? Answer: CQRS is Command Query Responsibility Segregation Pattern. It helps in separating the concerns such as Reads from Writes. Hence you have more…
It has been 16 years since Microsoft publicly announced C# language in 2000. Over the years, C# language has matured and has become one of the most popular and loved…
What a Windows Service is Enables you to create long-running executable applications that run in their own windows session. Can be automatically started when the computer boots, can be paused…
In order to return multiple values from a method in C#, we can use approaches like creating out parameters, creating a custom class with the required properties, or using tuples.…
In this article, we will see Compiled queries in LINQ to SQL and How to execute SQL queries, using LINQ to SQL. We will see how to use compiling queries…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualBasic; using System.Collections; using System.Data; using System.Diagnostics; using System.Data.SqlClient; using System.Xml; using System.Configuration; namespace PeshawarDHASW.Helper { class SQLHelper { #region "private…
When a REST Web API is created to share data across multiple devices, e.g., mobile devices, desktop applications, or any website, then the authorization of REST Web API becomes a…
Introduction The Onion Architecture term was coined by Jeffrey Palermo in 2008. This architecture provides a better way to build applications for better testability, maintainability, and dependability on the infrastructures…
C# 7.0 introduced two literal improvements, a digit separator and a hex literal. Digit Separator The digit separator “_” can be used inside number literals now. The purpose of a…
In this session 1. We will learn the basic structure of a c# program. The program we used in this video is shown below. // Namespace Declaration using System; class…