Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I've seen a lot of examples for CRUD operations. Most using Stored Procedures.
My doubt is if these examples are using Stored Procedure to make easy get the idea of how to develop a form for CRUD operations or if this is the best practical to use in professional projects. I mean, the most used and best way to do CRUD operations.
That's because I see others ways like:
* Entity Framework
* NHibernate
* Use the query in SQLCommands (DataAdapters, DataTables, ...)

I'd like to hear your opinions!
Posted
Comments
PIEBALDconsult 31-Aug-15 20:49pm    
There's no substitute for getting your hands dirty doing it yourself.
And avoid DataAdapters.

1 solution

Entity Framework is very mature framework and will be your best bet. We use it for very large projects and it works just fine. If your application is simple and you want complete control of what happens, then you can use DataReader for the most optimal performance.

Stored procedures are anti pattern for most of the modern applications as it forces you to move some business logic to a database layer which can quickly become a bottleneck. It was a good approach years ago when overall server performances wasn't that great, not anymore.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900