Coding

Database Migrations with Azure EF7 and DNX

With the newest release of ASP.Net 5 (vNext) and Entity Framework 7, it appears that the traditional web.config transform method and startup code will no longer work to have your database migration scripts automatically run when you deploy your code from source control to Azure. Here’s a new way that you can accomplish the same… Continue reading Database Migrations with Azure EF7 and DNX

Coding

Quick Tip – Linking User Identity to oAuth Tokens in WebAPI

In my Zurb For Applications .Net Scaffolding, I setup a base .Net WebAPI project that uses oAuth tokens for a better form of authentication in a single page application model. Since the token provides any details about the user that you want to encode, here’s a quick trick to expose the User.Identity.Name and User.IsInRole methods… Continue reading Quick Tip – Linking User Identity to oAuth Tokens in WebAPI

Coding

Sharing the Love – Zurb Foundation for Apps Scaffolding for .Net with Authentication

TLDR; NuGet package here. Github repository here. A little while back I was really excited that Zurb released their Foundation for Applications (ZFA) library. I’ve been working with it a little and really like the results. I’ve learned some new things along the way and it’s helping be do a “platform shift” for my side project:… Continue reading Sharing the Love – Zurb Foundation for Apps Scaffolding for .Net with Authentication

Coding

Soup to Nuts – Using Zurb Foundation for Apps in .Net

Update: Scaffold now available on Github. NuGet package available here. Update 2 Concerns over extending controllers are gone thanks to a note by Zurb, Link formatting is also updated to use the ui-sref model. I’ve updated things accordingly below, as well as the scaffold online. I’ve been a big fan of Zurb and their frameworks… Continue reading Soup to Nuts – Using Zurb Foundation for Apps in .Net

Coding

Refactored: Creating dynamic/configurable parameterized queries in Entity Framework

A little while back I posted about a technique I was using to setup parameterized queries using Entity Framework. I had posted to the .Net group on Google+ and received some amazing feed back from Dan Nemec and Chris McCall and refactored the code. It’s cleaner, easier to work with, and hopefully a bit more… Continue reading Refactored: Creating dynamic/configurable parameterized queries in Entity Framework

Coding

Creating dynamic/configurable parameterized queries in Entity Framework

EDIT: A better, refactored version of this can be found here. Entity Framework is an amazing tool. It allows you to quickly and easily get your basic queries and updates running with little hassle. In addition, you have business objects to interact with, which makes your middle tier (or your controller) that much easier to… Continue reading Creating dynamic/configurable parameterized queries in Entity Framework