This blog post is part of C# 6.0 Features Series.
As we know there are lots of small features added in C# 6.0 and Null conditional operator is one of them. You can check null with specific conditions with Null conditional operator and this will definitely increase productivity of developers and there will be less lines of code.
Let’s create example. Following are two classes I have created...
Tuesday, December 30, 2014
Sunday, December 28, 2014
C# 6.0–Static class using statement
This blog post is part of C# 6.0 Features Series.
C# 6.0 version introduced lot of small features and one of that features is using feature. Now with C# 6.0 you can use using statement which was not possible in earlier versions of C#. Following is a example of using statement in C#.
using static System.Console;
namespace StaticClassUsing
{
class Program
{
static...
C# 6.0–Auto implemented property initializer
This blog post is part of C# 6.0 Features Series.
As we all know C# 6.0 is there in preview mode and Microsoft has added few small features to C# 6.0 which helps lot while you develop application. In today’s blog post we are going to learn one more small feature called “Auto implemented property initializers”.
Developers working on C# used a automatic properties a lot and there has been...
Saturday, December 27, 2014
Continuous Integration with visualstudio.com,Unit Test(Test Driven Development) and TFS
CodeProject
Before some time I have written a blog post about Continuous integration with visualstudio.com and TFS and It goes quite a good number visits and lots of people are asking for unit test integration with continuous integration too. Today one of colleague also asked for the same. I thought...
Friday, December 26, 2014
Colorized tooltip in visual studio 2015
Visual studio 2015 provides lots of new features and Colorized tooltip is one of the features that I really like. As we all know that Visual studio supports automatic collapse of various language constructs like classes, methods. When you mouse hover it automatically show hidden code presented...
C# 6.0–nameof Operator
This blog post is part of C# 6.0 Features Series.
Microsoft announced the new version of C# 6.0 at the day of visual studio connect event on November. They have not added any big features to C# 6.0 but they have listened to community and added few small features which comes really handy. One of the that is nameof operator. In this blog post we learn why nameof operator is very useful.
Let’s...
Thursday, December 25, 2014
Custom Windows Layout in Visual studio 2015
Visual studio 2015 preview has been released by Microsoft before some days. So I recently got installed in my machine. It contains a bunch of new features and we are going to explore it one by one. Custom layout windows in visual studio 2015 is a one of the nice features in list. In this blog post we are going to learn about custom windows layout in Visual studio 2015.
As we all use different kind...
Sunday, December 14, 2014
Continuous integration with visualstudio.com and TFS
CodeProject
As a developer, we all are using some kind of source control provider to maintain versions of our source code. But another aspects of source control to is to make sure that code committed in source code repositories are perfect and it will not break the build of particular software. That’s why Continuous integration is very much popular this days.
What is Continuous Integration:
As...
Saturday, December 13, 2014
1.5 million page views for my blog- dotnetjalps.com
Ahh, still it’s hard to believe that my blog has achieved this milestone. Yeah my blog got completed 1.5 millions page views. So first all, thank you readers without you guys it’s not possible to achieve such a big milestone.
When I started my blog I was not never sure what I am going to do with this blog. But then it’s become integral part of my life. Now I can’t imaging my self without my blog....
Tuesday, September 16, 2014
Complex type in EFCodeFirst
I have already written a few blog post about EF Code first and it’s features following is a complete list of blog posts.
Entity framework code first and inheritance- Table Per Type
Entity Framework code first and Inheritance–Table per hierarchy
Entity Framework Code First migrations
Different way of mapping with EFCodeFirst
Different way of creating keys in EFCodeFirst
This post will also be part...
Thursday, September 11, 2014
Dependency Injection with ASP.NET MVC and Simple Injector

CodeProject
I have been learning SimpleInjector for few days and it’s just awesome. I have already written two post about it(see below link) and this post will be third post about it. In this post we are going to learn how we can do Dependency Injection with ASP.NET MVC.
For those who are reading...
Tuesday, September 9, 2014
Singleton Instance in SimpleInjector
Before some time I have written a blog post Dependency Injector with Simple Injector. This is a second blog post in same series. In this blog post we are going to learn How we can create a singleton Instance in Simple Injector.
What is is Singleton:
This is one of the Gang of Four creational pattern. Idea of behind the singleton pattern is to have only one instance of class of at anytime. This...
Friday, August 29, 2014
Dependency Injection with Simple Injector
Before some I have written a blog post about how to do dependency injection with StructureMap. In this post we are going to learn Simple Injector IOC library and how we can do dependency injection with Simple Injector.
About Simple Injector:
Simple Injector is a open source dependency injection library developed with C#. Followings are few characteristics of Simple Injector.
Simple Injector...
Saturday, August 23, 2014
Stackoverflow.com like URLs with attribute routing in ASP.NET MVC
Before some time I have blogged about Attribute Routing features of ASP.NET MVC 5.x version. In this blog we are going to learn how we can create stackoverflow.com like URLs with attribute routing.
As you know www.stackoverflow.com is one of the most popular questions answer site where you can ask questions and almost get the answers of your questions. So to create URLs like www.stackoverflow.com...
Thursday, August 21, 2014
Blog post selected as ASP.NET MVC Official Additional Learning Resources
I have got news before few days that my blog post about CDN is ASP.NET MVC bundling selected as Additional Resources for learning about ASP.NET MVC on official ASP.NET Site.
On this occasion I would like to thank my audience and my family to supporting me. Thank you all without you it would not have...
Friday, August 1, 2014
Different way of creating keys in EFCodeFirst
Recently I have been playing with Entity Framework Code First and I like it a lot. There are plenty of features given and you can configure all that stuff with code. I have already written couple of post for Entity Framework Code First.
Different way of mapping in EFCodeFirst
Entity Framework code first and Inheritance–Table per hierarchy
Entity framework code first and inheritance- Table Per Type
As...
Tuesday, July 29, 2014
CDN in ASP.NET MVC bundling
ASP.NET MVC contains great features and Bundling is one of them. The Bundling and Minification features allow you to reduce number of HTTP requests that a web page needs to make by combining individual scripts and style sheet files. It can also reduce a overall size of bundle by minifying the content of application. From ASP.NET MVC 4 bundling also includes CDN support also where you...
CRUD Operation with ASP.NET MVC and Fluent Nhibernate.
Before some time I have written a post about Getting Started with Nhibernate and ASP.NET MVC –CRUD operations. It’s one of the most popular post blog post on my blog. I get lots of questions via email and other medium why you are not writing a post about Fluent Nhibernate and ASP.NET MVC. So I thought it will be a good idea to write a blog post about it.
What is Fluent Nhibernate:
Convection...
Saturday, July 26, 2014
Different way of mapping with EFCodeFirst
Recently I have been working Entity Framework Code First 6.0 and it’s awesome. I am in love with it. It has got great fluent API and we can do anything with that. It’s also promotes Convention over configuration which I love so far.
I have seen people are more confused about how we can map table to class via Entity framework via code first. So this post is going to be in same series. In this post...
Thursday, July 24, 2014
HashSet in C#
In this blog post we are going to learn about HashSet collection in C#. It is a cool collection available from C# 3.5. Like any other collection it can be used for representing a set of value. It is an optimized set collection. It helps eliminating duplicate string or elements in collection. Whenever an Item is added in collection it will check whether this items are already there in collection If...
Wednesday, July 23, 2014
StructureMap–Getting Started
In this post we are going to learn about How we can do dependency injection with StructureMap. Here we are going to take a sample application of shopping cart. This shopping cart can process two type of orders 1. Sales order 2. Purchase Order. We want an abstraction for this. So first we are going to create an interface IOrder which will be implemented by both Purchase Order and Sales Order classes.
Following...
Sunday, July 20, 2014
Entity Framework Code First migrations
In this blog post we are going to learn about entity code first migrations. Entity Framework code first approach will allow you to define model classes as per the domain requirements via POCOs. Hence you have complete control over classes are written. But as application grows and there are some new features to be added and your classes will change. Entity Framework Code Migrations allows you...
Visual Studio 2013, Team Explorer and BitBucket
With Visual Studio 2013, Microsoft started supporting Git directly with Team Explorer and I have written a blog post how we can use git with team explorer and github called Visual Studio 2013, Team Explorer and GitHub. This post gained lots of popularity and also get lots of email about writing a blog post for using Git With BitBucket.org which is similar kind of source code hosting service...
Thursday, July 17, 2014
How to convert PSD into image file in c# with Magick.NET
Recently in one of project we had a requirement of converting a Adobe Photoshop file (PSD) into image file(.png) file. After digging while on internet I have found a great library which has so many features in can easily convert PSD files into any time of image file.
The Library is Magick.NET. It’s a open source project you can find more information about it from the following codeplex link.
https://magick.codeplex.com/
There...
Tuesday, July 8, 2014
How to change a profile picture in Visual Studio 2013
With Visual Studio 2013, Microsoft has provided synchronized settings in visual studio 2013 with live account. So all you need to do is to login into your live account and then it will automatically sync the settings of Visual Studio 2013 in different machine. Recently one of the reader of blog has...
Friday, July 4, 2014
Scope to this feature in Solution Explorer- Visual Studio
Visual Studio is one of my favourite IDE. I love more and more whenever I’m using it. Recently I have found a very good feature called “Scope to this” so I thought it will be a good idea to write a blog post about it.
This feature comes very handy when you have large solution and you want to work...
Entity Framework code first and Inheritance–Table per hierarchy
Before some day I have posted a blog about Entity Framework code first and Inheritance – Table per type and this post in next in series with that.
In previous post we have learned about how entity framework code first handles inheritance and in this part we are going to extend this and modify some of code of the code of data context to see how its creates a “Table per Hierarchy”.
We’re going to...
Saturday, June 21, 2014
Entity framework code first and inheritance- Table Per Type
Also see part-2 of this blog post- Entity Framework code first and Inheritance–Table per hierarchy
Recently I am using Entity Framework a lot. So I tried some of advance scenario and this post related to it only. In this post we will learn how entity framework handles inheritance.
In object...
Visual Studio 14 CTP virtual machine on Azure
Recently Microsoft has release a CTP version of Visual Studio 14 with ASP.NET VNext application. So I thought I will download and try it. But due to bad internet connection it was not downloading properly. Then I cam across following post about Visual Studio 14 CTP Virtual Machine on Azure.
http://blogs.msdn.com/b/visualstudioalm/archive/2014/06/04/visual-studio-14-ctp-now-available-in-the-virtual-machine-azure-gallery.aspx
So...
Wednesday, June 11, 2014
One ASP.NET in Visual studio 2013

This post is part of Visual Studio 2013 features series.
Since first release of ASP.NETMVC 2009, There are lots of type of projects are available for ASP.NET and It’s always been confusion to find all the projects under one hood. So now developer has not to worry about whether I should use Web Forms...
Friday, June 6, 2014
Video Review: Restful Services with ASP.NET Web API by Packt Publishing
If you enjoy seeing videos to learn thing this is the opportunity, Now Packt publishing is also started providing video courses and tutorial. I’m lucky enough to get an opportunity to review this video and thanks again Sagar Malage and Packt publishing marketing team to providing me opportunity...
Friday, May 23, 2014
Visual Studio update 2 is here download now!!
10 days ago Microsoft has release Visual Studio 2013 update 2. This update includes bug fixes as well as new features and customer feedbacks. Following are some new capabilities included in this updates.
Universal Apps:
With this release you now build Universal Apps that can run on Windows 8.1 and Windows phone 8.1 while sharing code and assets through shared projects.
There are two types...
Thursday, May 22, 2014
.NET Framework 4.5.2 released by Microsoft
Microsoft has released .NET Framework 4.5.2 before some time see the announcement from It’s .NET Framework team blog. It’s a compatible, in-place update for Microsoft.NET Framework 4.0,4.5 and 4.5.1. This framework also run side by side with earlier version of .NET framework.
From where I can download .NET Framework 4.5.2?
Following are link from where you can download .NET framework 4.5.2.
.NET...
One Million page views for my blog–dotnetjalps.com
I have putted blogger statistics from its announcement(July 2010). Today my statistics are showing that I have completed One million page views from July 2010. I feel honoured I have never assumed my blog will come this way. Earlier I had started this blog just for fun and to reserve my name with blogger subdomain. I was not aware that what is blogging and why we should do it. After some time...
Wednesday, May 21, 2014
Fun with Angela Smith library by James Chambers for C#
AngelaSmith is an awesome library created by James Chambers. This library is used to generate realistic test data. You can find more information about it from the following link.
https://github.com/MisterJames/AngelaSmith
As per documentation on the github, it is.
AngelaSmith is a library you can use to generate realistic test data. It is composed of several property fillers that can populate...
Tuesday, May 20, 2014
Learning resources for ASP.NET MVC
I am getting lots of question regarding where to learn ASP.NET MVC. So I thought it will beneficial to write a blog post so that everyone get advantages of it. Today there are multiple resources available to learn ASP.NET MVC here I have listed some of the my favorite resources to learn ASP.NET MVC.
Videos:
Videos are great way to learn any technology and there are many video resources are available.
1)...
Sunday, May 18, 2014
Important Milestone achieved- 650th blog post
I am not super crazy about achieving mile stones but I just notice that I have completed 649 posts on blog. So I thought it will be good idea to write about few mile stones.
On April 2014, my blog completed 8 years. The first post I have ever written was at April 26,2006.
Today I have completed another important milestone this is 650th post I am writing and still going on. My passion for blogging...
What’s new in ASP.NET MVC 5 Part-1 : Attribute Routing
ASP.NET MVC is a new buzz word in Microsoft.NET stack most of people have started learning into it. So recently before some time Microsoft has released a Major new version of ASP.NET MVC with ASP.NET MVC 5.x. There are lots of new features given with ASP.NET MVC 5.x versions and I’m going to write a few series of blog post to explain all the features in details. So stay tuned with that!!
In this...
Tuesday, May 13, 2014
Free Get Involved Video from Scott Hanselman and Rob Conery
I have posted Why developer should blog? earlier where I have given various reasons why every developer should have a blog because it’s a great way to give back some thing to community and you can also market your self as a developer across community. Scott Hanselman and Rob Conery has created one of best video regarding same topic call Get Involved. Here they have explained how you can get out there...
Thursday, May 8, 2014
Visual Studio 2013, Team Explorer and GitHub
CodeProject
Recently Git version controlling system has gained lots of popularity and more and more developers are using it for software development and version controlling. Microsoft also tied with Git with Visual Studio 2013. So if you use Visual Studio as your primary IDE and then its high time to learn about it. With Visual Studio 2013 team explorer you can easily tied code in your git repository...
Tuesday, May 6, 2014
Visual Studio Command Window- A useful but unknown feature
All the Microsoft developers love visual studio as Integrated Development Environment(IDE) because it has build with lots and lots of features and developers are more productive then ever. But still there are lots of feature which are not popular among the developers. Visual studio command window is one of the best feature but still lots of developers are not aware about it. In this post we are going...
Wednesday, April 30, 2014
Book Review : Reporting with Visual Studio and Crystal Reports
Again Marketing Team of Packt Publication (Jay Raval) has contacted me to review a book called “Reporting with Visual Studio and Crystal Reports” and I always have fun to review books so I said yes to them. This blog post is all about reviewing a book “Reporting with Visual Studio and Crystal...
Sunday, April 27, 2014
Enum support for views in ASP.NET MVC 5.1
Recently before some time Microsoft has announced release of ASP.NET MVC 5.1. It’s comes with tons of feature and Enum support is one of them. In the earlier release of ASP.NET MVC there was no direct support for the Enums and in the views but with ASP.NET MVC 5.1 Microsoft is providing directly @html.EnumDropDownList for which directly creates a dropdown from the Enum itself. So What we are...
Thursday, April 17, 2014
Test Driven Development is your friend
I have seen lots developers are not seeing benefits of Test Driven development. When you do Test Driven development there are lots of benefits. So I thought it will be good idea to write a blog post about it.
What is Test Driven Development:
As per wikipedia Test Driven Development is
Test-driven...
Tuesday, April 15, 2014
Creating a WordPress blog on azure websites
In this post we are going to learn how we can create WordPress blog with Azure web sites.
What is Azure Web Sites?
Before some time Microsoft has released Azure web sites for South East Asia region. Windows Azure web sites offers secure and flexible deployment and scaling options for any kind of web application. You can use your existing tools to create and deploy applications to Azure Websites.
Windows...
Friday, April 11, 2014
Visual Studio 2013 Cookbook review
The marketing team from Packt Publication has given opportunity to Review Visual Studio 2013 Cookbook. So, this post is all about reviewing Visual Studio 2013 Cookbook . It’s total 333 pages of long book with full converge of visual studio features.
About Authors:
This book is written...
Thursday, April 10, 2014
How to convert C# object into JSON string with JSON.NET
Before some time I have written a blog post – Converting a C# object into JSON string in that post one of reader Thomas Levesque commented that mostly people are using JSON.NET a popular high performance JSON for creating for .NET Created by James Newton- King. I agree with him if we are using .NET Framework 4.0 or higher version for earlier version still JavaScriptSerializer is good. So in this...
Dapper Micro ORM Series
Recently before some time I have created a blog post about list of blog post I have written about Petapoco Micro ORM. So one of the friend suggested I should write same kind of series post about Dapper Micro ORM so that reader of my blog can find the all the posts on same page. So that’s why I writing this blog post.
What is dapper:
Dapper is Micro ORM developed by Sam Saffron few years ago while...
Saturday, April 5, 2014
Converting a C# Object into JSON string
Some people might think why I am writing so much about basics but the things but in reality I got lot of questions through email and other communities about very basic things. So I thought instead of replying them into single thread. It is a good idea to write blog post about it and as a result...
ASP.NET Checkbox button Attributes in JavaScript.
This is a follow up post I have just written before some time- Getting tooltip of ASP.NET Radio button in java script. In that post I have explained that to render all properties properly in ASP.NET renders checkbox and radio button surrounded by Span tag. So one of the friend message me on facebook...
Getting tooltip of ASP.NET Radio button in java script.
This post in regards to a question that I have answered on stack overflow. Getting Tool tip of the Radio button in JavaScript. Where user asks why he is not able to get tooltip with document.GetElementById and Client Id of ASP.NET Radio button control like following.
document.getElementById('<%=...
Overriding/set default button in master page in asp.net
Some time ago I have written a blog post about Default focus and default button in ASP.NET. In that post I have explained how we can set default button for form. Recently I got email related to that post asking that how we can set or override default button on a page with master page.
In this...
Saturday, March 22, 2014
Explicit Keyword in C#
Yesterday, I have written a blog post about Implicit Keyword in C#. In today’s post we are going to learn about Explicit keyword in C#. Like Implicit keyword explicit keyword is also used for typecasting one class into another class. It is also a type conversion operator but rather then directly invoking...
Friday, March 21, 2014
Launching DotNetJalps Communities
Everyday I got lots of emails asking about technical things and Every time I am trying to give proper answer to them. But due to lack of time it was always not possible to reply all the emails as I have professional commitments also. So that’s why I decided to launch DotNetJalps community where people can ask questions and If I am not there then also another people can answer the question. Another...
Implicit Keyword in C#
In today’s post we are going to learn about implicit operator in C#. Implicit keyword is used for conversation in C#. It is used to declare an implicit user-defined type conversation operator. So with the help of implicit keyword you can convert one class into another class without writing any other...
Thursday, March 20, 2014
Enhanced debugging with DebuggerDisplay in C#
We all need to debug our projects and for that we need to some visualization to see values of debug data C# has a attribute called ‘DebuggerDisplay’ which helps developers to visualize data in the way developer wants .
As per MSDN, DebuggerDisplay attributes allows developers of the type, who specifies...
Wednesday, February 26, 2014
Internet Explorer 11 developer toolbar features
Recently Microsoft has launched new developer tool bar with Internet Explorer 11 with some cool features. In this post we are going to learn about the new features of Internet Explorer Developer toolbar. Microsoft has rewritten whole toolbar and now it loaded with bunch of features.
DOM Explorer:When...