VSLive Anaheim 2017: ASP.NET & ASP.NET Core Security

Posted · Add Comment

I spoke at VSLive Anaheim 2017 this week.  As promised, here are my slides and code from the ASP.NET & ASP.NET Core Security talk. Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck.  Access the IPrincipal for the current user, call […]

Deploy Entity Framework Core Migrations from a DLL

Posted · Add Comment

[Updated 3/29/2017 — Added a bash version of this script for deploying EF Core Migrations from Linux.] Entity Framework Migrations let you deploy incremental updates to a target database.  With Entity Framework Core (EF Core) this is done from the command line by going to the directory that contains your Entity Framework entity and migration code, […]

TFS Build / Release Configuration Utilities: Edit app.config, web.config, appsettings.json, and XML

Posted · Add Comment

When you’re working automated builds and automated releases, you frequently need to edit configuration files like app.config, web.config, and appsettings.json. Well, I wrote a command line utility to do this and I figured I’d share.  I’ve got a version that is an .exe that can be used on a Windows build agent and I’ve got a version that’s written […]

Walkthrough: Entity Framework Core 1.1 with Migrations

Posted · 5 Comments

Here’s a walk-through on how to create a new solution that uses an ASP.NET Core project, an MSTest unit test project, and Entity Framework Core 1.1 (EFCore1.1).  I’m not sure if you’ve found this to be the case but I’ve been struggling with the documentation for a few days trying to figure out how to […]

VSLive Austin 2016: ASP.NET MVC / Core Security Slides & Code

Posted · Add Comment

I spoke at VSLive Austin 2016 last week.  As promised, here are the slides & code samples from my ASP.NET MVC / ASP.NET Core Security Authorization Talk.   Role-Based Security Stinks: How to Implement Better Authorization in ASP.NET & WebAPI In .NET, if your user permissions are simple, you’re in luck. Access the IPrincipal for the […]