有没有方法告诉企业库使用准备好的语句?如果有,怎么做?
如何使用企业库中的预处理语句?
原标题:
最佳回答
简短回答是使用 DbCommand.Prepare();
长答案是它完全不相关,并在调用存储过程时导致无操作。
而且,它只应在代码将进行多个调用(例如在循环中)具有相同查询时使用。
问题回答
You should be able to obtain the sqlConnection / Command being executed -> can t you set the relevant setting here before executing ??
Hope I ve got the right end of the stick...
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding