是否需要在3tier应用程序中检查连接? [英] Is necessary to check connection in 3tier application?

查看:57
本文介绍了是否需要在3tier应用程序中检查连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello



is it necessary to check my connection (Open/Close) to sql bank in DataAccess layer before any action for data manipulating? Or that happens behind the code automatically? I use stored procedure in all DataSet.TableAdapters.



tnak you

推荐答案

没有必要检查连接,但是你应该实现错误处理,这样如果出现问题,网站不仅仅是黄屏。 Google提供各种错误处理策略。
It's not necessary to check the connection, but you should implement error handling so that the site doesn't just "yellow screen" if there is a problem. Google for various error handling strategies.


这篇关于是否需要在3tier应用程序中检查连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆