bitScry

  • Home
  • About
  • Blog
  • Contact

NULL

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Mocking Hangfire BackgroundClient Jobs
  • Running Shinobi CCTV on a Raspberry Pi
  • Visual Studio CoreCLR Error
  • Adding Healthchecks to a .NET Core 6 API
  • Getting Location From IP Address
Tag Cloud

.NET .NET Core AAD API appsettings.json ASP.NET Core Authentication Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS CSV DataTable Dependency Injection Dictionary Enum Extension Google GZip HTML Image JavaScript jQuery JSON List MVC MVC 6 Newtonsoft RestSharp Serilog SFTP SQL Stored Procedure Stream Table Table Storage Web App Web Application WordPress

Programming

SqlDataReader Null Handling

When reading values from a SqlDataReader in .NET null SQL values will cause the reader to error. I used to have an explicit null check around each column, however as this involved quite a bit of code duplication I had a look for something better and found this Stack Overflow Read more…

By Shinigami, 5 years27 July 2017 ago
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle