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…
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,…
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…
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…
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…
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…
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…