Stop using [Bind]

There's a lot to like about ASP.NET MVC, but some parts are just atrocious. The Bind attribute is one of those atrocious parts. For the seemingly few who are »

A Truly Generic Repository, Part 2

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class A Truly Generic Repository, Part »

A Truly Generic Repository, Part 1

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class A Truly Generic Repository, Part »

Generic Entity Base Class

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class (this article) A Truly Generic »

Getting a partial URL From Request.Url

Even after almost 4 years working with ASP.NET, I can still never remember what property I need from Request.Url. So, as much to aid my own brain as »

Automatically get ASP.NET Identity user with an assist from Ninject

How many times have you found yourself doing this: [Authorize] public async Task<ActionResult> Foo() { var user = await UserManager.FindByIdAsync(User.Identity.GetUserId()); if (user == null) { AuthenticationManager.SignOut »