Updating Sql Database to use Temporal Tables with Entity Framework Migration

,
July 6, 2017 / No Comment

In a couple of recent applications that IntelliTect developed for clients, we decided to use SQL Server Temporal Tables in order to track changes in the database over time. The apps we were working on were ASP.NET Core web applications, using Entity Framework Core (EF).  While we could have simply modified the databases using queries against the database server directly, […]
Read more

Staying Logged in across Azure App Service Swap

,
January 14, 2017 / No Comment

I love being able to deploy to slots with Azure Standard and above App Services. These allow me a main production site, a slot for testing which has a separate database, and staging slot that shares a database with production.
The Problem
Whenever I swap the production and stage sites, all the users of the production site get logged out. […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Azure, Blog, C#

Displaying the Build Date on your Web Pages

,
August 26, 2016 / No Comment

The Build Date Problem
I have struggled to find a good way to communicate with users the version of a web site. Version numbers are tricky and only meaningful to people close to the project. I like dates but they are often tricky to implement.
My default choice has always been dates because they are easy for customers to understand. […]
Read more

Upgrading ASP.NET Core to RTM

,
July 20, 2016 / No Comment

Here are the steps I followed to get an ASP.NET Core project upgraded from an RC1 with some RC2 beta bits up to RTM. 
This project is a full framework project without cross-platform capability. It uses Bower, NPM, and Gulp. I started the process by creating a scaffolded new project and based the upgrade on that. I also found it helpful to […]
Read more

.NET Core Dependency Injection

,
May 4, 2016 / 2 Comments

In my last two articles, Logging with .NET Core (bit.ly/1Vv3Q39) and Configuration with .NET Core (bit.ly/1OoqmkJ), I demonstrated how .NET Core functionality can be leveraged from both an ASP.NET Core project (project.json) as well as the more common .NET 4.6 C# project (*.csproj).  In other words, taking advantage of the new framework is not limited to those who are writing […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Blog

Essential .NET – Logging with .NET Core

,
April 7, 2016 / 2 Comments

In the February issue, I delved into the new configuration API included in the newly named .NET Core 1.0 platform (see bit.ly/1OoqmkJ). (I assume most readers have heard about the recently renamed .NET Core 1.0, which was formerly referred to as .NET Core 5 and part of the ASP.NET 5 platform [see bit.ly/1Ooq7WI].) In that article I used unit testing […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Uncategorized

Implementing a Custom ILogger with Exception Handling for .NET Core

,
March 4, 2016 / 2 Comments

This article corresponds with the MSDN article: Essential .NET – Logging with .NET Core. This github repo contains the code referenced in the article. Not in particular the unit test LogCritical_Exception_Success for an example of handling an exception using the custom logger.

The Custom Logger implementation is straightforward:

Here is the the extension method for adding a custom […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, C#