- Home
- .NET code examples
.NET code examples
![SignalR hub example sending chat messages in ASP.NET Core](/media/gjykfeag/tutorial-profile.png?width=350&height=197&v=1dad3d6c63253a0)
![Geolocation & IP lookup example to find client's location](/media/foqblrnh/tutorial-profile.png?width=350&height=197&v=1dac3125f1acaf0)
Geolocation & IP lookup example to find client's location
A Geolocation code example in ASP.NET Core which uses IP lookup to find the client's location so you know which country they are located.![Stripe .NET checkout example to add online payments](/media/jztktncq/tutorial-profile.png?width=350&height=197&v=1dabb684178a730)
Stripe .NET checkout example to add online payments
Download an ASP.NET Core Stripe checkout example that uses the Stripe.net NuGet package to take online payments through a Web API endpoint.![xUnit project example for unit testing in .NET and C#](/media/tssljy1o/tutorial-profile-2.png?width=350&height=197&v=1da95ace4bc2520)
xUnit project example for unit testing in .NET and C#
Download an xUnit test project to help you unit test your C# code in a .NET project. It includes Fact and Theory examples alongside different Assert methods.![Using Moq in an xUnit project to unit test a .NET project](/media/u55bpxuv/tutorial-profile.png?width=350&height=197&v=1da95ac11aaca10)
Using Moq in an xUnit project to unit test a .NET project
Download an xUnit and a .NET class library project that uses the Moq mocking framework to mock objects as part of unit tests.![Get started with Entity Framework Core](/media/b32f4nse/dbcontext-tutorial-profile.png?width=350&height=197&v=1da7e06079fd5f0)
Get started with Entity Framework Core
Get started with EF Core includes creating a DbContext, adding a migration, CRUD operations, the Include method, raw SQL queries and stored procedures.![ASP.NET Core Web API CRUD methods example](/media/5ttjvjz3/tutorial-profile.png?width=350&height=197&v=1da7d39114826c0)
ASP.NET Core Web API CRUD methods example
Download an ASP.NET Core Web API code example which includes endpoints for each of the CRUD methods (Create, Read, Update and Delete).![Basic authentication in ASP.NET Core](/media/shsl55cm/cover-500-3.png?width=350&height=197&v=1d9c6fca6bb6ee0)
Basic authentication in ASP.NET Core
Purchase a ASP.NET Core Basic authentication example allowing you to add the Authorization header to a HTTP request.![JWT authentication in ASP.NET Core](/media/hc2h5fjj/background-7.png?width=350&height=197&v=1d9c7042bd95400)
JWT authentication in ASP.NET Core
Download a ASP.NET Core JWT authentication example allowing you to generate a Bearer token to authenticate a HTTP request.![Roulette wheel in Blazor WebAssembly](/media/pltebb11/cover-1-1.png?width=350&height=197&v=1d9c4acff626dc0)
Roulette wheel in Blazor WebAssembly
Create Roulette using Blazor WebAssembly. This .NET Blazor Wasm demo is built up with C# and Razor components.
Watch .NET tutorials
Subscribe to our YouTube channel