FxCop is an application that analyzes managed code assemblies and reports information about the assemblies, such as possible design, localization, performance, and security improvements. You can also write custom rules to check for your own design guidelines. In this tutorial let us see how to install FxCop 10.0 and also learn how to analyze code by writing our own custom rules.
In the coming days there is going to be lot of stress on building more interactive web applications. SignalR is one such framework in .NET technology which helps to build interactive, real-time, multi user applications. Let us learn what is SignalR by building a simple Application in ASP.NET MVC 4.
When I set out to port .NET application from windows 7 to Linux, I thought its going to be a long laborious process with lots of configurations. But surprisingly it did not take much time. Most of you might have already heard about mono-project, an open source implementation of the Microsoft .NET Framework. It is aimed at helping developers develop cross-platform applications.
In my previous blog I showed how to set up NHibernate with PostgreSql. Now let us move on and build a small application
and learn how to do the NHibernate Mappings. I have come up with a small ASP.NET MVC 3 project just to illustrate
the usage of NHibernate. In the process you will also learn:
1. How to create Database, Tables, Schema and roles in PostgreSql
2. How create a MVC 3 project and use HTML helper forms.
3. How to map model objects and save them into Database
4. How to define many to one relationship in NHibernate.
With this blog and the previous one, you should be all set to build and develop any large scale project.
If you are looking for an Object Relational Mapping Solution for your .NET project then NHiberante is one framework I can vouch for. There are other ORM solutions for .NET like SubSonic , LLBLGen. NHibernate is open source and can be downloaded from here. If you are new to NHibernate, setting it up with your ASP.NET Application could be tricky. In this tutorial I will be showing you how to integrate NHibernate, PostgreSQL with ASP.NET MVC 3 application.
Here is an easy way to get your application path. It is very helpful to declare a String variable at the top of your cshtml or aspx page and use it to access any files with in your project.