.NET Database Apps: Your Preferred Setup

Posted by mdvaldosta on Stack Overflow See other posts from Stack Overflow or by mdvaldosta
Published on 2010-04-07T14:51:55Z Indexed on 2010/04/07 14:53 UTC
Read the original article Hit count: 325

Filed under:
|
|
|
|

I'm struggling to settle into a pattern for developing typical database driven apps in C# and Visual Studio. There are so many ways to set them up, using drag/drop datasets and adapters or writing the queries manually in ADO.NET or Linq to SQL, Linq to Entities, to bind or not to data bind etc etc. Where to store the connection string, in app.config or in a method or both etc etc. So many tutorials and all of them are different. Everytime I write something I start hating the way it looks and works, so I scrap it and start over. It's getting a bit tedious. Maybe it's alittle of the OCD in me.

Would any of you professional developers out there share your method of setting up and structuring your database logic and maybe some sample code? It's really how to go about organizing the code and the method(s) of interacting with SQL that I'm trying to get into a routine with, one that works and won't get me laughed at by someone reviewing it.

© Stack Overflow or respective owner

Related posts about c#

Related posts about database