Category Archives: .NET

How to get XML data from Web API

If you’ve come this far, I can only presume that you are well versed with RESTful Services. In any case, if you are new to REST, here’s the definition. Definition: Representational state transfer (REST) is a software architectural style that … Continue reading

Posted in .NET, Web API | Tagged , , , , , , | Leave a comment

What is Blazor and Why should you Use it!

Introduction: According to Microsoft Docs, Blazor is a framework for building client-side web UI with .NET. It’s a feature of ASP.NET, the popular web development framework that extends the .NET developer platform with tools and libraries for building web apps. … Continue reading

Posted in UI Framework | Leave a comment

How to Call a UDF using ADO.NET

Let’s face it, most of us typically work with Stored Procedures with modest complexity using JOINS and such. Some of us embed Common Table Expressions (CTE) in the stored procs. If you are already using Entity Framework 2.2, you would … Continue reading

Posted in .NET, ADO.NET, SQL Server | Leave a comment

How to Enable .NET Core 3.0 Preview in VS2019

If you are in the process of creating a Blazor app in Visual Studio 2019 that you installed right after its launch (around April 2019 timeframe), chances are you’ll find the checkbox titled “Use previews of the .NET Core SDK” … Continue reading

Posted in .NET | Leave a comment

Query Types in EF Core

If you have been using Entity Framework 6.x or EF Core, then you are already familiar with Entities and its usage. Query Types is a new addition to EF Core 2.1 which you can refer to Entities as its cousin. … Continue reading

Posted in .NET, ORM | Leave a comment

Data Seeding in EF Core

Data seeding is a process where you populate the initial set of data into the database. I’ll explain some of the rudimentary steps needed for creating seed data in your app. Prior to EF Core 2.1, seeding data was not … Continue reading

Posted in .NET, ORM | Leave a comment

How to create an .EXE using .NET Core Console App

In the previous exercise, we learnt how to publish and execute a .NET Core Console App! In case you want to review that exercise, you can access it from here. In this exercise, we’ll look at a quick way to … Continue reading

Posted in .NET | Comments Off on How to create an .EXE using .NET Core Console App

How to Publish and Execute a .NET Core Console App!

Publishing a .NET Core app is as easy as 1,2,3. Here’s how: After you have created the console app, make sure you select Release from the Solution Configurations drop-down menu.   Now right-click on the project node inside Solution Explorer … Continue reading

Posted in .NET | Tagged , | Comments Off on How to Publish and Execute a .NET Core Console App!

How to use .NET Core Console app?

Console apps have been around since .NET’s inception i.e. 2002. Over the years, it has had a bit of a windows dressing with additional APIs, integration with .NET Core and the like. Let’s look at a simple console app written … Continue reading

Posted in .NET | Comments Off on How to use .NET Core Console app?

What is Managed and Unmanaged Code?

Managed Code: The .NET framework provides several core run-time services to the programs that run within it. For example; Exception Handling and Security. In order for these services to work, the code must provide a minimum level of information to … Continue reading

Posted in .NET | Leave a comment