If you need it free though, then those are 2 good choices indeed (look at SubSonic too). NHibernate is more mature and its java equivalent is used a lot. Entity Framework is new new new, and is closer to Java's Enterprise Java Beans than NHibernate, but
its fully integrated in Visual Studio and stuff...
Honestly, its fully your call. Try both, read a -lot- about them (when you pick a DAL framework, its very hard to come back and change later, no matter your architecture, because you'll have to redo a lot of code, be it well isolated or not), and pick depending
on which one suits you best.
I realise its probably not the answer you wanted, but...
As for going from one or the other... If you put all of your DAL code behind classes (and don't use it directly from your UI forms), you'll only have to change that part of the code when you want to switch... but on any system of substential size, it is
still very long to redo all of the data access code, and thats without considering optimisations... something that may be fast in NHibernate could be slow in Entity Framework, and vice versa.
thank you for the feedback and it really helps me to understand.
I play little bit with LLBLGen and somehow i don't like because: not much resource on the net, i don't find any introduction screen cast or tutorial except the few tutorial on their web site which is really not help me as beginner....and also it spits the
code for you which i don't like....
currently I'm readings about NHibernate and also doing some sample applications and watching screen cast and its look very interesting and look promising and the good thigs is that, it wont spit the code for you and i like it because its very clean and very
precious.
EF is still in beta and i have seen one screen cast and looks interesting too
honestly i like to stick with Microsoft product which helps in long run and also give compatibility with other tools.
thanks.
Its all about coding!
--------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.
nisarkhan
Contributor
2402 Points
1472 Posts
NHibernate or ADO.NET Entity Framework ?
Jul 29, 2008 05:13 PM|LINK
i'm not sure what should i pick should i go with NHibernate or ADO.NET Entity Framework (i'm aware that still in preview 4) ?
any suggustions?
also i like to know if i switch from NHibernate to ADO.NET Entity Framework how hard would be ?
thanks.
--------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.
shados
Star
12285 Points
2229 Posts
Re: NHibernate or ADO.NET Entity Framework ?
Jul 29, 2008 05:19 PM|LINK
Neither! LLBLGEN Pro is the way to go :)
If you need it free though, then those are 2 good choices indeed (look at SubSonic too). NHibernate is more mature and its java equivalent is used a lot. Entity Framework is new new new, and is closer to Java's Enterprise Java Beans than NHibernate, but its fully integrated in Visual Studio and stuff...
Honestly, its fully your call. Try both, read a -lot- about them (when you pick a DAL framework, its very hard to come back and change later, no matter your architecture, because you'll have to redo a lot of code, be it well isolated or not), and pick depending on which one suits you best.
I realise its probably not the answer you wanted, but...
As for going from one or the other... If you put all of your DAL code behind classes (and don't use it directly from your UI forms), you'll only have to change that part of the code when you want to switch... but on any system of substential size, it is still very long to redo all of the data access code, and thats without considering optimisations... something that may be fast in NHibernate could be slow in Entity Framework, and vice versa.
nisarkhan
Contributor
2402 Points
1472 Posts
Re: NHibernate or ADO.NET Entity Framework ?
Jul 29, 2008 05:50 PM|LINK
Shados:
thank you for the feedback and it really helps me to understand.
I play little bit with LLBLGen and somehow i don't like because: not much resource on the net, i don't find any introduction screen cast or tutorial except the few tutorial on their web site which is really not help me as beginner....and also it spits the code for you which i don't like....
currently I'm readings about NHibernate and also doing some sample applications and watching screen cast and its look very interesting and look promising and the good thigs is that, it wont spit the code for you and i like it because its very clean and very precious.
EF is still in beta and i have seen one screen cast and looks interesting too
honestly i like to stick with Microsoft product which helps in long run and also give compatibility with other tools.
thanks.
--------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.