Should I Use the Data Wizard in Visual Studio?

若如初见. 提交于 2019-12-13 06:39:41

问题


I'm using Visual Studio 2008 to interface with several data sources, mostly SQL Server 2008 Express and Visual Foxpro.

Should I use the Data Source Configuration Wizard or should I build my own Connection, DataAdapter, DataSet, Command, and DataTable using code? What factors should influence my decision?

I usually go the code route if it gives me more power or control. However, I know from experience that there are certain products (like SBS 2008 or SonicWall) where using using the built-in wizards is not only preferred but almost mandatory.


回答1:


Developers spend much more time maintaining the application as compared to writing them. So, the decision should be based on readability and maintainability.

The wizards generate code which has to be understood at some point in time; either when complexity increases or when version changes.

I would advise using hand written, clean code as much as possible. Unless the tool/library makes the overall code much smaller.



来源:https://stackoverflow.com/questions/5052064/should-i-use-the-data-wizard-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!