• Spotlight: AI in Enterprise
  • Videos
  • Newsletters
  • Resources

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides
Popular Topics
  • Artificial Intelligence
  • Cloud Computing
  • Data Management
  • Software Development
  • Spotlight: AI in Enterprise
  • Videos
  • Newsletters
  • Resources

Topics

  • Analytics
  • Artificial Intelligence
  • Generative AI
  • Careers
  • Cloud Computing
  • Data Management
  • Databases
  • Emerging Technology
  • Technology Industry
  • Security
  • Software Development
  • Microsoft .NET
  • Development Tools
  • Devops
  • Open Source
  • Programming Languages
  • Java
  • JavaScript
  • Python
  • Enterprise Buyer’s Guides

About

  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Newsletters
  • Reprints

Policies

  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights

Our Network

  • CIO
  • Computerworld
  • CSO
  • Network World

More

  • Blogs
  • BrandPosts
  • Events
  • Videos
  • Enterprise Buyer’s Guides
HomeBlogs.NET ProgrammingPage 2

.NET Programming

Filter by
Analysis
BrandPost
Feature
How-To
Interview
News
News Analysis
Opinion
Reviews
Tip
how-to

Digging deeper into DbContext in Entity Framework Core

EF Core allows you to instantiate a DbContext in several ways. Learn when and how to use these different approaches in your ASP.NET Core applications.

By Joydip Kanjilal
Mar 08, 2024 7 mins
Microsoft .NET C# Databases
how-to

How to use value objects in C#

Learn how you can use value objects in C# to improve the clarity, structure, and maintainability of your code.

By Joydip Kanjilal
Feb 22, 2024 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

When to use classes, structs, or records in C#

Learn how to choose between classes, structs, and record types in C# for power, flexibility, efficiency, and performance.

By Joydip Kanjilal
Feb 15, 2024 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

Create an exception handler in ASP.NET Core 8

Take advantage of the new IExceptionHandler interface to handle exceptions gracefully in your ASP.NET Core applications.

By Joydip Kanjilal
Feb 01, 2024 7 mins
C# Microsoft .NET Web Development
how-to

Demystifying the Code First approach in EF Core

Take advantage of the Code First approach in Entity Framework Core to create the data model for your application based on its domain entities in ASP.NET Core.

By Joydip Kanjilal
Jan 25, 2024 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to implement a custom object mapper in C#

AutoMapper makes life easy, but has its limits. Learn how to implement a custom mapper to handle complex data structures or incompatible types.

By Joydip Kanjilal
Jan 18, 2024 8 mins
Microsoft .NET C# Development Libraries and Frameworks
analysis

How to use primary constructors in C# 12

Primary constructors in C# 12 can be used in classes and structs as well as record types. Here’s how they make your code cleaner and more concise.

By Joydip Kanjilal
Jan 04, 2024 6 mins
Microsoft .NET C# Programming Languages
how-to

How to use IEnumerable, ICollection, IList, and IQueryable in C#

Understand the differences between the most commonly used interfaces for accessing and manipulating collections of data in C#.

By Joydip Kanjilal
Dec 21, 2023 7 mins
C# Microsoft .NET Web Development
how-to

The best new features in C# 12

From primary constructors and collection expressions to default lambda parameters, C# 12 has many new features that simplify building modern, flexible applications.

By Joydip Kanjilal
Dec 14, 2023 8 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

Implement authorization for Swagger in ASP.NET Core

Swagger makes it easy to document APIs, and Swashbuckle makes it easy to use Swagger in ASP.NET Core. Here’s how to implement basic authentication and authorization for your Swagger UI.

By Joydip Kanjilal
Nov 30, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement JWT authentication in ASP.NET Core

It’s easy to secure minimal API endpoints in ASP.NET Core using JSON Web Tokens for authentication and authorization. Just follow these steps.

By Joydip Kanjilal
Nov 28, 2023 9 mins
C# Microsoft .NET Web Development
how-to

How to measure API performance in ASP.NET Core

Take advantage of MethodTimer.Fody to measure the execution speed of your APIs and keep your ASP.NET Core applications running smoothly.

By Joydip Kanjilal
Nov 16, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use the specification design pattern in C#

Take advantage of the specification design pattern in C# to improve the modularity, maintainability, and reusability of your source code.

By Joydip Kanjilal
Nov 09, 2023 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use IAsyncEnumerable in C#

Learn how to use IAsyncEnumerable in C# to easily filter, aggregate, transform, project, or otherwise process continuous streams of data asynchronously.

By Joydip Kanjilal
Nov 02, 2023 5 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to create SOAP services in ASP.NET Core

Take advantage of SoapCore to create SOAP services in ASP.NET Core and support data exchange with other systems.

By Joydip Kanjilal
Oct 26, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use structured concurrency in C#

Structured concurrency offers a more organized and more intuitive way of managing the lifetimes of asynchronous tasks. Here’s how to take advantage of it in C#.

By Joydip Kanjilal
Oct 19, 2023 7 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use TinyIoC in ASP.NET Core

TinyIoC is a lightweight and fast inversion of control container that makes dependency injection simple and easy. Here’s how to take advantage of it in ASP.NET Core applications.

By Joydip Kanjilal
Oct 12, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

How to implement in-memory caching in ASP.NET Core

You can take advantage of the decorator design pattern to add in-memory caching to your ASP.NET Core applications. Here’s how.

By Joydip Kanjilal
Oct 05, 2023 9 mins
Web Development Microsoft .NET Development Libraries and Frameworks
how-to

Build an API gateway using YARP in ASP.NET Core

Take advantage of an API gateway to provide a single point of entry to your back-end services and keep your services secure. YARP makes it easy.

By Joydip Kanjilal
Sep 28, 2023 6 mins
Web Development Microsoft .NET Development Libraries and Frameworks
feature

How to build a microservice in ASP.NET Core

A microservices architecture can help you build applications that are flexible, scalable, and easy to maintain. Here’s how to get started with microservices in ASP.NET Core.

By Joydip Kanjilal
Sep 14, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to improve API security in ASP.NET Core

Take advantage of authentication and authorization, API keys, rate limiting, CORS, API versioning, and other recommended practices to build secure and robust APIs in ASP.NET Core.

By Joydip Kanjilal
Aug 31, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to improve data access performance in EF Core

Take advantage of these 10 strategies to improve data access performance when using Entity Framework Core in your data-driven .NET applications.

By Joydip Kanjilal
Aug 17, 2023 11 mins
C# Microsoft .NET Web Development
how-to

How to use Fluent Assertions in C#

When unit tests fail, they should clearly explain why. Take advantage of the Fluent Assertions library to write unit test methods that are simple, readable, concise, and expressive.

By Joydip Kanjilal
Aug 10, 2023 7 mins
Microsoft .NET Development Libraries and Frameworks Software Development
how-to

6 performance tips for Entity Framework Core 7

Take advantage of these EF Core performance tips to speed up data access in your .NET applications.

By Joydip Kanjilal
Jul 27, 2023 8 mins
Microsoft .NET C# Databases
how-to

How to handle null values in C#

Null pointer exceptions are no fun. You can avoid them and keep your code clean and maintainable by using these techniques to elegantly handle null values in C#.

By Joydip Kanjilal
Jul 20, 2023 5 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use the is and as operators in C#

Take advantage of the is and as operators in C# to perform casting operations elegantly and write code that is well structured, concise, and maintainable.

By Joydip Kanjilal
Jul 13, 2023 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to use API keys to secure web APIs in ASP.NET Core

Take advantage of API key authentication to control the access of applications and services to your Web APIs in ASP.NET Core.

By Joydip Kanjilal
Jul 06, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to work with Azure Key Vault in .NET Core

Azure Key Vault is a safe and secure place to store the tokens, keys, passwords, certificates, and other sensitive data used in your .NET Core applications. Here’s how to work with it in C#.

By Joydip Kanjilal
Jun 29, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to avoid spaghetti code in C#

Spaghetti is good eating but bad programming. Follow these 10 best practices to keep your C# code clean, lean, and easy to maintain.

By Joydip Kanjilal
Jun 15, 2023 5 mins
Microsoft .NET Development Libraries and Frameworks Software Development
how-to

Composition vs. inheritance in OOP and C#

Understand the key concepts behind composition and inheritance that allow you to build reusable and flexible types in your .NET applications.

By Joydip Kanjilal
Jun 08, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use advanced Dapper features in ASP.NET Core

Take advantage of stored procedures, query pagination, query caching, and other advanced Dapper feature to simplify data access and ensure high performance.

By Joydip Kanjilal
Jun 01, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use factory-based middleware activation in ASP.NET Core

Factory-based middleware activation is a more flexible and dynamic approach to configuring and activating middleware components. Here’s how to take advantage of it in ASP.NET Core 7.

By Joydip Kanjilal
May 25, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to use the rate limiting algorithms in ASP.NET Core

Learn how to use the fixed window, sliding window, token bucket, and concurrency algorithms in ASP.NET Core 7 to protect your applications and APIs against malicious attacks or overuse.

By Joydip Kanjilal
May 18, 2023 8 mins
C# Microsoft .NET Web Development
how-to

How to use response compression in ASP.NET Core

Take advantage of response compression middleware in ASP.NET Core to reduce bandwidth requirements and improve the responsiveness of your apps.

By Joydip Kanjilal
May 11, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use request decompression in ASP.NET Core 7

Take advantage of the request decompression middleware in ASP.NET Core 7 to enable your API endpoints to accept requests that contain compressed content.

By Joydip Kanjilal
Apr 27, 2023 6 mins
C# Microsoft .NET Web Development
how-to

Applying the DRY, KISS, and YAGNI principles in C#

If you don’t repeat yourself, keep it simple, and implement only the functionality you really truly need, your C# code will be cleaner, simpler, and much easier to maintain.

By Joydip Kanjilal
Apr 20, 2023 8 mins
Microsoft .NET C# Software Development
how-to

How to use the unit of work pattern in ASP.NET Core

Take advantage of the unit of work design pattern to build flexible, extensible, and reusable data access layers in your ASP.NET Core applications.

By Joydip Kanjilal
Apr 06, 2023 8 mins
C# Microsoft .NET Web Development
how-to

Get started with the rate limiting middleware in ASP.NET Core 7

Take advantage of the new rate limiting middleware in ASP.NET Core 7 to protect against malicious attacks on your applications and ensure equitable use of server resources.

By Joydip Kanjilal
Mar 30, 2023 5 mins
C# Microsoft .NET Web Development
how-to

How to work with EF Core migrations in ASP.NET Core

Take advantage of migrations in EF Core to manage database schema changes over time and keep them in sync with the data models of your ASP.NET Core applications.

By Joydip Kanjilal
Mar 23, 2023 6 mins
C# Microsoft .NET Web Development
how-to

How to send emails using SendGrid in ASP.NET Core

Take advantage of SendGrid to integrate reliable and scalable email into your ASP.NET Core applications. Here’s how.

By Joydip Kanjilal
Mar 02, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use parameter binding in minimal APIs in ASP.NET Core

Take advantage of parameter binding in ASP.NET Core 7 to convert request data to strongly typed parameters, improving both application performance and code maintainability.

By Joydip Kanjilal
Feb 23, 2023 8 mins
C# Microsoft .NET Web Development
how-to

Orchestration and choreography in .NET microservices

Orchestration takes a centralized approach, and choreography a decentralized approach, to coordinating the interactions of microservices. Understand the differences.

By Joydip Kanjilal
Feb 16, 2023 8 mins
Microsoft .NET Software Development
how-to

The best new features in ASP.NET Core 7

The latest version of Microsoft’s web application development framework brings excellent new capabilities to middleware, minimal API apps, and more. Here are the highlights.

By Joydip Kanjilal
Feb 09, 2023 8 mins
C# Microsoft .NET Web Development
how-to

How to use implicit and explicit operators in C#

Take advantage of implicit and explicit operators to convert between user-defined types and improve the readability of your code.

By Joydip Kanjilal
Feb 01, 2023 5 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with Action, Func, and Predicate delegates in C#

Learn how you can take advantage of delegates like Action, Func, and Predicate to facilitate callbacks and add flexibility to your code.

By Joydip Kanjilal
Jan 24, 2023 6 mins
Microsoft .NET C# Development Libraries and Frameworks
how-to

How to work with delegates in C#

Take advantage of delegates to promote flexibility and code reuse in your .NET applications and to implement event-driven programming with ease.

By Joydip Kanjilal
Jan 19, 2023 5 mins
Microsoft .NET C# Software Development
how-to

How to use OpenAPI in ASP.NET Core

Take advantage of the built-in support for OpenAPI in ASP.NET Core to automatically document your HTTP endpoints. Minimal APIs are supported too.

By Joydip Kanjilal
Jan 12, 2023 7 mins
C# Microsoft .NET Web Development
how-to

How to use the null object pattern in .NET

Take advantage of the null object pattern in .NET to eliminate the need for null checks and avoid runtime errors in your applications.

By Joydip Kanjilal
Jan 05, 2023 5 mins
C# Microsoft .NET Web Development
how-to

How to use symmetric and asymmetric encryption in C#

Learn how to protect the information handled by your .NET applications by encrypting and decrypting the data using either a single key or a public/private key pair.

By Joydip Kanjilal
Dec 22, 2022 7 mins
Microsoft .NET C# Software Development
how-to

How to work with endpoint filters in ASP.NET Core 7

Take advantage of endpoint filters in ASP.NET Core 7 to modify request and response objects, short-circuit the request processing pipeline, or handle cross-cutting concerns for every request.

By Joydip Kanjilal
Dec 15, 2022 6 mins
C# Microsoft .NET Web Development
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Show me more

opinion

The dirty little secret of open source contributions

By Matt Asay
Nov 18, 20244 mins
Technology IndustryOpen Source
Image
feature

14 great preprocessors for developers who love to code

By Peter Wayner
Nov 18, 202410 mins
Development ToolsSoftware Development
Image
feature

Designing the APIs that accidentally power businesses

By Jean Yang
Nov 18, 20246 mins
APIsSoftware Development
Image
video

Building Python wheels to distribute your programs

Nov 15, 20246 mins
PythonSoftware Development
Image
video

Creating a pip install-able Python package

Nov 14, 20243 mins
PythonSoftware Development
Image
video

How to get better web requests in Python with httpx

Oct 07, 20244 mins
Python
Image
About
  • About us
  • Advertise
  • Contact Us
  • Foundry Careers
  • Reprints
  • Newsletters
  • BrandPosts
Policies
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Copyright Notice
  • Member Preferences
  • About AdChoices
  • E-commerce Affiliate Relationships
  • Your California Privacy Rights
  • Privacy Settings
Our Network
  • CIO
  • Computerworld
  • CSO
  • Network World
  • LinkedIn
  • X
  • Facebook
Copyright © 2024 IDG Communications, Inc.