Posted by Anuraj on Friday, November 8, 2013
.Net ASP.Net MVC EF Code First Entity Framework SQL Server
Recently I worked on a project, which I started as code first and then I forced to switch to Database first. This post is about executing procedures from EF code first.(This is an update version of this post Here is my class structure and procedures.
Posted by Anuraj on Tuesday, November 5, 2013
.Net .Net 4.0 ASP.Net MVC Web API
Most of the time while working with Web API; we were dealing with particular model from our domain and creating GET/POST/PUT/DELETE methods that map to CRUD operations. But today I faced an issue, where I need to store some data, and I don’t have a mapping class for the same. As WebAPI doesn’t support two classes in Post action using FromBody attribute, I did it by combining FromBody and FromUri attributes, like this.
Posted by Anuraj on Sunday, November 3, 2013
.Net ASP.Net ASP.Net MVC Web API
In this post I am going to show how to implement Basic HTTP authentication in a Web API project by customizing AuthotrizeAttribute. HTTP authentication is a standard protocol and can be easily handled by most popular client and mobile platforms.
Posted by Anuraj on Thursday, October 31, 2013
Posted by Anuraj on Tuesday, October 8, 2013
.Net .Net 4.0 ASP.Net MVC
Broadcasting a message from SignalR hub is pretty straight forward, but sometimes you may need to do the same from outside the hub, like from MVC controller or a Web Page.
Posted by Anuraj on Wednesday, October 2, 2013
.Net Team Foundation Server Version Control Visual Studio
In the recent project I was using few nuget packages. And I was using TFS. Committing these packages into TFS was increasing the size of the repository. Later I found a solution using Enable NuGet Package Restore option. You can enable this option by right clicking on the solution file or from Project > Enable NuGet Package Restore option.
Posted by Anuraj on Saturday, September 28, 2013
.Net .Net 4.0 Web API
WebAPI will return JSON or XML based on the request accept header. But some times you may need to return JSON only, without considering the accept header.