
Introduction to NHibernate
When it comes to object relation mapping, writing your own code is a nightmare and not worth doing. This is because there are many frameworks written to do the same thing that you're going to do from scratch. These technologies are matured by time therefore there is no risk using them in real world applications than deploying them with your own buggy code.
When it comes to object relation mapping, writing your own code is a nightmare and not worth doing. This is because there are many frameworks written to do the same thing that you're going to do from scratch. These technologies are matured by time therefore there is no risk using them in real world applications than deploying them with your own buggy code.
NHibernate is one of the widely used Object Relational Mapping framework. You can easily use it in your projects and you can find many resources in internet about using this.
NHibernate with LINQ to SQL
LINQ to SQL is another way you can do Object relation mapping but in an easier way than NHibernate. But the problem with LINQ to SQL is that it forces you to use Class per Table kind of pattern. If you're into a small application which do not involve complex table updates and other things you can give LINQ to SQL a shot because it's fairly very easy to begin with. But when it comes to developing a complex enterprise level application, don't go with LINQ to SQL. Get start with LINQ to SQL Here.
Get Started with NHibernate
You can visit the official web site http://nhforge.org/ download the framework and deploy it in your applications. This is a starter tutorial I found on the same site http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx. use it and see the difference.
NHibernate with LINQ to SQL
LINQ to SQL is another way you can do Object relation mapping but in an easier way than NHibernate. But the problem with LINQ to SQL is that it forces you to use Class per Table kind of pattern. If you're into a small application which do not involve complex table updates and other things you can give LINQ to SQL a shot because it's fairly very easy to begin with. But when it comes to developing a complex enterprise level application, don't go with LINQ to SQL. Get start with LINQ to SQL Here.
Get Started with NHibernate
You can visit the official web site http://nhforge.org/ download the framework and deploy it in your applications. This is a starter tutorial I found on the same site http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx. use it and see the difference.
No comments:
Post a Comment