Skip to content

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

  • Blog

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

  • Blog

60 Second Dev

60 second software development tutorials and demos, and short blog posts.

Tag: c#

2021-08-182022-05-12.net

Catching SQL exceptions in .NET

Here’s one way of handling SQL errors from .NET: For expected errors, […]

2021-08-182022-05-12.net

Add response compression in .NET Core

2021-08-172022-05-13.net

Rolling text file to GZip Trace Listener

This writes to a text file, then after 10MB is written, the […]

2021-08-042022-06-06.net

Log Entity Framework details on exception

This worked in old versions, haven’t tested yet in Entity Framework Core […]

2021-08-042022-06-12.net

Do not await an async method

From this answer on StackOverflow – to avoid the compiler warning you about not […]

2021-06-302022-06-12.net

C# Yield

When building a method that returns IEnumerable, you can use the yield keyword to […]

2021-06-232022-01-14.net

Type-safe JSON result in ASP.NET MVC

public abstract class BaseController : Controller { protected internal JsonResult<T> Json<T>(T data) […]

2021-06-232022-01-14.net

Read/write large blob to SQL Server from C#

Rather than try to make it happen in one big command, here’s […]

2021-06-222022-01-13.net

.NET Console Application Dependency Injection

When working with console applications, you need to manually define your service […]

2021-06-222022-01-13.net

Is Development in Razor View

I find myself needing to know if I’m in development from inside […]

Posts navigation

Previous 1 2 3 … 11 Next
  • RSS Feed
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

.net asp.net async audio aws azure batch brotli browser c# cloud config cryptography css csv dependency injection email entity framework git guid gzip handlebars html images javascript jquery json jsonp linq linux mercurial mvc nodejs pdf records scss serialization sqlite sql server temporal tables tfs typescript windows wsl xml

If you learned something today

Buy Me a Coffee

© 2022 60 Second Dev. Proudly powered by Sydney