Register for your free account! | Forgot your password?

You last visited: Today at 05:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



nhib. vs ado.net

Discussion on nhib. vs ado.net within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 12
Received Thanks: 5
nhib. vs ado.net

why is it that everyone is using nhib. rather than ado.net, while in my poor experience with both nhib throw way more non-sense errors while ado.net has almost the same performance, ik it may not be ORM but even as query engine it still gets the work done ?
dsfkdmkfm is offline  
Old 01/15/2015, 18:46   #2
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
So you rather write everything manually then have it running automatically?
turk55 is offline  
Old 01/15/2015, 23:11   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 43
Received Thanks: 43
ADO.NET isn't really even an option these days... It's either EF (preferred by most devs these days - including me) and nhibernate (has been around for longer, thus may be more stable).

There's so many reasons to chose an ORM. Some of the reasons:
* It's strong typed (if used fluently), meaning you can find, refactor, etc much much easier.
* It's easy. I mean VERY easy (and safe). Look how easy it is!
Code:
 var badUsers = db.Users.Where(x => x.Email.Contains("@****.com"));
* No more messing with strings. All done via actual code.
* Setting it up is as easy as adding the project and importing your DB (theres way too many guides out there).
* Performance is amazing for what it offers.
.John is offline  
Thanks
2 Users
Reply




All times are GMT +1. The time now is 05:20.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.