Author
.NET Web API Optional Parameter
int? <parametername> = null Optional parameters needs to be nullable type and initialized to null.
JPG Image SOI Marker Error
Error: Invalid SOI Marker detected in file. Fix: SOI = Start of Image Marker If you are using FileStream to load in image file, make sure to reset the SOI position before you re-load the FileStream object. Examples:
.NET 5 System.Drawing
Note: The System.Drawing namespace is not recommended for new development, because it’s not supported within Windows services, ASP.NET Core, and ASP.NET. Attempting to use System.Drawing classes within one of these application types may result in run-time exceptions and diminished service performance. Recommended alternatives include ImageSharp, SkiaSharp, and Windows Imaging Components. On Windows, System.Drawing depends on the GDI+ native library, which is shipped as part... » read more
SQL For Multiple Date Type Options
For multiple date type options… and one set of date range field. 1 for Transaction Date 2 for Business Date 3 for Posted Date
CRUD Operations
CRUD = Create, Read, Update and Delete In computer programming, create, read, update, and delete (CRUD) are the four basic operations of persistent storage.
Azure Storage Queue
Azure Queue Storage is a service for storing large numbers of messages. You access messages from anywhere in the world via authenticated calls using HTTP or HTTPS. A queue message can be up to 64 KB in size. A queue may contain millions of messages, up to the total capacity limit of a storage account.... » read more
Azure Function Get Environment Variable using local.settings.json
To get an environment variable or an app setting value, use System.Environment.GetEnvironmentVariable, as shown in the following code example: local.settings.json Note: Microsoft recommends this method because it works both locally with local.settings.json and in Azure. App settings can be read from environment variables both when developing locally and when running in Azure. When developing locally,... » read more
Run Timer Triggered Azure Function Locally
Gets or sets a value indicating whether the function should be invoked immediately on startup. After the initial startup run, the function will be run on schedule thereafter. Sources: https://stackoverflow.com/questions/46556621/what-is-the-simplest-way-to-run-a-timer-triggered-azure-function-locally-once
Reference System.Data.SqlClient not found
Microsoft has removed System.Data.SqlClient from the default installation of Visual Studio (.NET Core). In order to use it, you must install from NuGet as install-package System.Data.SqlClient. Once installed, this reference is available for use and code will compile. Sources: https://social.msdn.microsoft.com/Forums/en-US/ec2361a3-1931-4423-bf68-08b206ce67aa/reference-systemdatasqlclient-not-found?forum=netfxbcl