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

Entries for March, 2012

Avoid pluralized name in table creation with Entity Framework Code First

When you work with Entity Framework Code First approach, you are creating your database tables  from your model classes.  Usually Entity Framework will create tables with Pluralized names. that means if you have a model class called PhoneNumber, Entity framework will create a table for this class called “PhoneNumbers“. If you wish to avoid pluralized name and wants [...]

Why I love CodeRush : Reason #1

This 3 Pictures will explain why is it so Hover your mouse Just a click

Entity Framework Code First– How to add a new Property to your model class with making an effect in your table structure

IF you are using Entity framework code first approach, there is a good chance that you will be adding new properties to your modal classes as your development goes further. As we know the “code-first” approach,  creates the database schema from your code ( your classes which represent your entities).  When you add a new [...]

NUnit with ASP.NET MVC and CodeRush

Adding unit tests to your projects is one of the important thing in all the projects. Unit tests are the smallest testable parts of our application which ensures our code works as expected before we move to integrating our stuff into other modules or code. A unit test provides strict written contract that the piece [...]