Now days, Convention over configured is more preferred and that’s why Fluent Nhibernate got more popularity Because with Fluent Nhibernate we don’t have to write and maintain mapping in xml. You can write classes to map your domain objects to your database tables. If you want to learn how we can do this with existing database and Fluent Nhibernate, I have also written a blog post about CRUD...
Thursday, March 26, 2015
Sunday, March 22, 2015
Entity Framework Internals: Enum Support
In .NET world, We all are using Enums in our code. It’s makes our code more readable then using hardcoded numbers of strings. Entity Framework 5.0 or higher version has support for Enums. In this blog post we are going to see how we can use Enums with entity framework.
We are going to create a console...
Saturday, March 21, 2015
Entity Framework internals :IEnumerable and IQueryable
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.
IEnumerable...
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
I have gone through all of above three and then After doing research and I choose NSubstitute....