Best way to use and modify ado.net components

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Airslash
    New Member
    • Nov 2007
    • 221

    Best way to use and modify ado.net components

    Hello,

    I have a question regarding the use of the ADO.NET framework 2.0 and higher.
    I'm aware there are several ways for doing things inside the .NET framework, but I would like some feedback about my approach:

    Most colleagues use the toolbox and drag components inside the winform and then use them by configuring them through the propertiesbox.

    I on the other hand dynamicly create the components I want by explcitly typing gcnew and work with those objects.

    Which one is actually the best approach? Should i keep following my way yes/no and why?
  • sanjib65
    New Member
    • Nov 2009
    • 102

    #2
    Dynamically creating components is always regarded as a good habit from the coder's point of view. It can only be done when your conception is crystal clear about ADO.NET.
    But there are default classes created by Microsoft to do the heavy lifting. In the present scenario, you don't have to write many codes. Few codes and some dragging and linking do the whole things for you. But again you ought to know the background stories. Otherwise you can not use class library.
    Personally I prefer using default classes as much as possible, because VS 2008 (that I use) has shipped so many things under one roof that you almost don't have to write dynamically. But sometimes it seems neccessary.
    I'm eager to know what other members prefer :)

    Comment

    Working...