First CRUD Application In ASP.NET Core MVC Using Entity Framework Core

This article intends to explain basic Create, Read, Update and Delete (CRUD) operations in ASP.NET Core MVC using Entity Framework Core. We develop an application using Entity Framework “Code First” approach. To set up a development environment for ASP.NET Core MVC application, we follow steps which mentioned in the article Getting Started With ASP.NET Core… Continue Reading First CRUD Application In ASP.NET Core MVC Using Entity Framework Core

Func, Action And Local Function in C#

This article intends to demonstrate two Func and Action generic delegates and Local function in C# 7.0. The Func and Action are already available in C# while Local function is introduced in C# 7.0. These three methods are used to in another method internally as per requirements. The below table demonstrates about each method. #… Continue Reading Func, Action And Local Function in C#

Getting Started With ASP.NET Core MVC

ASP.NET Core is a web framework which is an open source cross platform version of ASP.NET. It used to build modern Cloud-based internet connected Applications, such as Web apps, IoT apps, and mobile back-ends. It runs on the single source code, based on Windows, Linux, and OSX. It is developed from scratch parallel with .NET… Continue Reading Getting Started With ASP.NET Core MVC

Expression Bodied Members In C#

The Expression-bodied member feature introduced in C# 6. It is enhanced in C# 7 to allow expression bodied member with constructor and destructor. Expression-bodied means method or property body write as an expression. We can use expression body in following cases. When a method returns single value or void. The method has a single expression… Continue Reading Expression Bodied Members In C#

Pattern Matching In C#

This article introduces new features of the Pattern Matching in C# 7.0. The C# 7 introduced pattern matching in two cases, the is expression and the switch statement. Pattern matching has following two advantages. Pattern matching can be performed on any data types. These can be user defined and primitive type. Pattern matching can extract… Continue Reading Pattern Matching In C#

Ref Return and Ref Local In C#

This article intends to demonstrate new features Ref Return and Ref Local In C# 7.0. The ref is used to be passed as a argument in the method. It enhanced with return and uses returned value later in the method using ref return and ref local. Ref: It uses to pass an argument to a… Continue Reading Ref Return and Ref Local In C#

SOLID – Single Responsibility Principle With C#

The Single Responsibility Principle is one of the SOLID design principles. We can define it in following ways: A reason to change: A class or method should have only one reason to change. Single Responsibility: A class or method should have only a single responsibility. When a class has more than one responsibility, there are… Continue Reading SOLID – Single Responsibility Principle With C#