Now days, Entity framework is one the most used ORM in .NET world. Still I can see lots of people confused with IQueryable and IEnumerable. If they dont' know what is difference between them then they are going to make mistakes .When you first look at it both looks same. But there are quite differences and If you don’t understands internals of it then it will impact your query performance also.
Saturday, March 21, 2015
Friday, March 13, 2015
NSubstitute Introduction and Why I like it
Recently I am heavily learning Test Driven Development and Domain Driven design. As you know With TDD you need to have a mocking libraries. So after doing on research on internet they are three libraries available in Microsoft.NET development world which are quite mature.
- Rhino Mocks
- NSubstitute
- Moq
Why I Choose NSubstitute:
Following are the reasons why I have chosen NSubstitute.- It is super easy to use. I don’t have to write very complex lamda expressions to mock objects.
- It works really fine with all framework of Test Driven Development
- As it is super easy to use you need to write very less code to mock objects.
- With other Visual Studio plugins like Resharper, Telerik Justcode its works perfectly and they are able to generate code for the same.
- It’s got fluent syntax and very easy to understand.
- It’s perfect for some one who is not mature enough for Test Driven Development.
Thursday, February 5, 2015
Shared project in Visual Studio 2015
Shared project is new feature that was added in Visual Studio 2013 update 2 but in visual studio 2015 it is coming by default. In this post we are going to learn about Shared Project and how it is different from class library.
To understand how Shared project works, I have create a blank solution like following.

Shared project in Visual Studio 2015:
Shared project is a new feature that is introduced with Visual Studio 2013 update 2 and it’s comes by default with Visual Studio 2015. So with shared project you can share your common code with any number of applications. You can use that in another project via adding project reference. So let’s see how we can use Shared project in multiple application.To understand how Shared project works, I have create a blank solution like following.
