Month: April 2020

Is and As operators in C#

Both 'is' and 'as' operators are used for type casting. But there are significant differences in these keywords Is Operator The Is operator is used to check the type during...

Readmore

Dynamic Vs Var in C#

Using the dynamic keyword vs the var keyword can be confusing. In this post I am going to explain the differences between dynamic and var keywords. dynamic - is just...

Readmore

Entity Framework Core Reverse Engineering

Entity Framework Core Reverse Engineering – Entity Framework Core with Existing Database

Reverse engineering is the process of creating entity classes and DB context using an existing database. This blog is going to explain how to create the Entity Framework Core with...

Readmore

Populating Dropdown using Dependency Injection into View in ASP.NET Core

Populating Dropdown using Dependency Injection into View in ASP.NET Core

This blog explains how to load a drop-down list in View using a dependency injection, without passing the value from the controller. So that it will reduce the request to...

Readmore

A Beginners Guide to Test Automation Framework

A testing framework is a combination of practices and tools designed to provide a foundation for test automation. Test automation uses software to run the test cases and check the...

Readmore

Service Injection into View in ASP.NET Core

Service Injection into View in ASP.NET Core

This blog is about how dependency is injected directly into view. Let us look at it using a small example. The following is a ColorListService class that returns a list...

Readmore

ASP.NET Core Service Scope Singleton vs Scoped vs Transient

ASP.NET Core Service Scope

Singleton vs Scoped vs Transient This article describes the service scope in ASP.NET Core and the difference between AddSingleton, AddScoped and AddTransient  methods. Let us see the following example that...

Readmore

Turn on CircuitOption.DetailedError in Blazor

Turn on CircuitOption.DetailedError in Blazor

This article is going to explain how to enable CircuitOption.DetailedError in the development environment. Let us look at a small example. The following is the Blazor component code. It contains...

Readmore

Basic Event Handling in Blazor

Basic Event Handling in Blazor

This article is to explain how event handling works in Blazor. The @on{event} attribute in Razor is the event handling attribute. The {event} may be any event. For example, For...

Readmore