LINQ To SQL – CRUD Operations

We have seen a lot of articles on LINQ to SQL. Before going through this article, I would recommend to have some basic information about LINQ to SQL. Refer to…

Introduction To Entity Framework

What is Entity Framework Entity Framework is an ORM framework. ORM stands for Object Relational Mapping. What is an Object Relational Mapping framework Object Relational Mapping framework automatically creates classes,…

SQL Helper for C#.Net

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…

Onion Architecture In ASP.NET Core MVC

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…

Literal Improvements In C# 7.0

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…

Deconstruction In C# 7.0

Deconstruction is a process of splitting a variable value into parts and storing them into new variables. This could be useful when a variable stores multiple values such as a…

Local Functions In C# 7.0

C# 7.0 adds a new feature called local functions, which allows local methods to be defined and called within a method. This wasn’t possible in the previous versions. The following…

Out Variables In C# 7.0

Prior to C# 7.0, the out keyword was used to pass a method argument's reference. Before a variable is passed as an out argument, it must be declared. However, unlike…

Pattern Matching In C# 7.0

Patterns are introduced in 7.0 to bring power to some existing language operators and statements. Currently, the pattern matching is partially implemented in C# 7.0 and more work is expected…