A very important task in just about any web application that you will build is data access. There is alot of opinions on how this is done the best way. You can use inline sql statements in your code, you can use stored procedures or you can generate your sql using a OR Mapper. From the develop ...
Strongly typed include in EF, revisited
A few days ago I wrote this post about strongly typed "Include()" method in Entity Framework. However, this approach has a little flaw that I fixed today. The error is that it will not handle nested members. I have fixed this now, and here is the new version of the Nameof class:
public st ...
Keep your javascript away from my markup
Today, many web applications use alot of javascript to create a nice experiance for the user. With libraries like jQuery it is very easy to create that little extra that gives you this "woow" feeling. I use alot of javascript as well and I think it´s pretty fun writing when using a l ...
Strongly typed include in EF
The other day I was talking to my old teacher, Jon Wiberg, at "Ljud & Bild skolan". He told me that he had built a extension for the entity framework that enables you to use a strongly typed version of the ".Include()" method in Entity Framework using a lambda expression. I t ...
Validation in a MS MVC application, revisited
A while ago I posted a approach to validating you´r model and one to add captcha validation in a MS MVC application. You can find those posts here: Mvc, validate controller action input and Asp.net mvc captcha validation made easy. They both use a attribute approach to declare what to val ...
Building a forum application, Part 7
This is the seventh part in a series of posts where I build a forum application. The other posts can be found here:
Building a forum application, Part 1
Building a forum application, Part 2
Building a forum application, Part 3
Building a forum application, Part 4
Buildin ...