Posted by Anuraj on Tuesday, November 17, 2015 Reading time :2 minutes
This post is about the server side controller implementation. If you’re using previous versions of ASP.NET, you need to use Web API or REST enabled WCF services. ASP.NET5 comes with unified development experience, so don’t need to specify whether it is an MVC controller or Web API controller. You only need to inherit from controller class. It is also optional, since controller class got some utility methods, in this post, the controller is inherited from Controller class. Also for storage, I am using EF InMemory provider, you can use Sqlite or SqlServer, only minimal change is required. Here is the project.json file.
Posted by Anuraj on Monday, November 16, 2015 Reading time :1 minute
This post is about implementing CRUD operations with Angular JS and ASP.NET5. The ASP.NET5 is different from the earlier versions of ASP.NET Framework. You can build ASP.NET 5 apps in Mac and Linux using VS Code and DNX. In this post I am configuring the development environment. You can add angular to your application via downloading from Angular website, via bower and using nuget package manager.
Posted by Anuraj on Thursday, November 12, 2015 Reading time :1 minute
Visual Studio TFS
This post is about a small but useful Visual Studio Extension, Locate in TFS. This extension will help you to locate the currently selected item in solution explorer, in Source control explorer.
Posted by Anuraj on Friday, November 6, 2015 Reading time :1 minute
By default EntityFramework.SQLite will not work with x64 platform. Here is the tweak which helps you to target your ASP.NET 5 application for x64 platform.
Posted by Anuraj on Wednesday, November 4, 2015 Reading time :1 minute
aspnet5 sqlite autofac
This post is about configuring the ASP.NET identity with Sqlite Database. In ASP.NET5, you can configure the identity to use Sqlite by modifying the DbContext. Instead of using SqlServer, you can use Sqlite.
Posted by Anuraj on Saturday, October 31, 2015 Reading time :1 minute
aspnet5 Dependency injection codeproject autofac
ASP.NET5 comes with inbuilt dependency injection framework. This post is about using Autofac DI framework instead the in built DI framework. You can find more details about ASP.NET5 DI Framework in ASP.NET5 DependencyInjection respository. And you can find more details about Autofac in Autofac documentation
Posted by Anuraj on Friday, October 23, 2015 Reading time :1 minute
aspnet5 dnx codeproject Compression
Compression is an easy and effective way to reduce the size and increase the speed of communication between a client and remote resource. Two common compression algorithms used on the web are GZip and Deflate. The Accept-Encoding header is used by a client to restrict the encoding types that are acceptable in the response.