Posts

Validation in Entity Framework Code First

Image
Entity framework code first has support for validation for frequent validation scenarios. In this post, we will look at a couple of ways on how this can be achieved. If you are new to Entity framework code first, you might want to check out my post on entity framework quick start. .

Entity Framework Code First Quick Start

Image
Hi, in this post I will show you how to get started with using Entity Framework.

Automapper Quickstart

Image
Mapping code is ubiquitous in most web applications. The most common use case is when mapping DTO's to business entities or from business entities to view models. Manually writing mapping code, though necessary, is tedious, time-consuming, error prone, and hard to maintain. Fortunately there are libraries such as AutoMapper that help us with the task.

Building a Deployment Package with Static Content

Image
I was once working on a MVC 3 project. The project included the usual web stuff: controllers, views, models, images, css files, and javascript files. There are also a couple of Excel files that we use. Come deployment time, I followed the steps in building a deployment package. To my surprise (horror), a lot of the css, javascript, and image files were not loaded! Even the Excel files could not be found. So what happened?

Enabling SQL Server Authentication after Installation

Image
If you install SQL Server using the default options, Windows authentication will be enabled and SQL Server authentication will be disabled. This post discusses how to enable SQL Server Authentication after installation and also enable the sa login.

Javascript: Truthy and Falsy Values

Image
I used to wonder what this Javascript code fragment means:

How to Test Internal Methods in Visual Studio

Image
Today I will show a very simple way on how to test internal methods in Visual Studio.