Tips & Tricks on ASP.NET MVC, Ajax, jQuery, Entity Framework

Entries for May, 2012

Entity Framework Code First Inheritance : Table Per Type and Table Per Hierarchy

Recently i answered a question in stackoverflow about how to create separate tables for each sub type when handling inheritance. Today i thought of expanding it with some sample source code and share it here. While working with data driven applications, Some times we need to implement Inheritance in our code as well as the data storage. Let’s take a look [...]

dynamic type in C#.4.0 Where and how to use ? How does it differ from var and object ?

Recently i was working on an API project where i have to return JSON data to the client for different kind of Requests like Customers, Orders, Products etc.  Since i was working on ASP.NET MVC, I could make use of the Json method to convert my entities ( Customer / Product etc…) to Json format [...]

Starting Entity Framework Codefirst Approach Part- 2

This is the second part of my Entity Framework Codefirst  Tutorial for beginners. If you want to start fresh , Visit the first part here. If you tried the first part, while creating the database using code first approach, you might have noticed that our columns of string type is created as nullable columns of type [...]