Morten Empeños Blog

Search:

COALESCE versus ISNULL

Posted on Feb 12, 2015 by Morten Empeño

T-SQL supports two functions to replace a NULL value with another value. This blog discusses nature of the ISNULL and the COALESCE functions, and concludes why one of the functions is often preferred by T-SQL developers.

Read More

Categories: Database

Tags:

Multiple database contexts with Unit of Work

Posted on Feb 06, 2015 by Morten Empeño

In this blog I explain how you can fix the error: The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects. In my case I ran in to the problem when building an application with a generic repository, using Unit of Work and using Unity for dependency injection.

Read More

Categories: ASP.NET

Tags: Unity, MVC

Mixing Literals and Column Names in TSQL

Posted on Feb 02, 2015 by Morten Empeño

In this blog, I show how to mix literals and column names, and I explain how it can be useful to do so in specific contexts. All the naming of the columns is done with help from using aliases.

Read More

Categories: Database

Tags: SQL Aliases

Handle periods in MVC urls

Posted on Jan 31, 2015 by Morten Empeño

This is a small blog, on how to handle 404 error caused by dots in an MVC url.

Read More

Categories: ASP.NET

Tags: MVC

The type IUserStore`1 does not have an accessible constructor

Posted on Jan 26, 2015 by Morten Empeño

Setting up Unity in an MVC application with authentication may cause the error: The type IUserStore`1 does not have an accessible constructor This blog describes why and how to fix it.

Read More

Categories: ASP.NET

Tags: MVC, Unity

Implement CAPTCHA on MVC Mail Form

Posted on Jan 24, 2015 by Morten Empeño

This blog is a short and easy description on how to implement CAPTCHA validation on a mail form in an ASP:NET MVC project.

Read More

Categories: ASP.NET

Tags: MVC, Razor


Page 3 of 4

Categories

Tags