Generate EntityFramework Entity Class from SQL Server Table
.Net Core 6 – register environment appsettings.json files
The problem A .net core application comes with a framework that creates an appsettings.{env}.json file that can store environment specific settings. Generally settings in appsettings.json […]
Nuget and .NetCore versions – tips and tricks
The problem I have had some issues recently upgrading to .Net Core 6.0. In doing so I decided that I should stick to only Microsoft […]
The certificate chain was issued by an authority that is not trusted – FIXED
The Issue When moving from EntityFramework v6.0 to v7.0 you may get the following exception. The fix The fix is very simple. Just add the […]
Mock IOptions in unit test
The Issue You wish to unit test using the microsoft options Interface, but how do you inject your configuration class into your test framework? The […]
.net Core Automapper Dependency Injection from child libraries
The Problem I have recently built a set of .net core libraries that leverage automapper to help transform between my database entities and my contracts/models […]
c# extension – AwaitResult
c# Extension to Await a result when performing Async coding
EntityFramework force the update of an object
The Problem You are trying to save some changes to an object. Your code looks like the following: using (var context = new DbEntities()) { […]
PayPalMerchantSDK, integrate paypal into your mvc 4 website
The following outlines some of the things that I have learned whilst trying to integrate a PayPal payment gateway into the MVC 4.0 website. Installation […]
Type ‘YourWPfApp.App’ already defines a member called ‘Main’ with the same parameter types
Create your own Custom Splash Page In WPF you can really easily create a basic splash page which is just an image, but it is […]