Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法告诉企业库使用准备好的语句?如果是这样,怎么做?
简短的回答是使用 DbCommand.Prepare();
长答案是它完全无关紧要,并且在调用存储过程时会导致无操作。
此外,仅当代码将要使用相同的查询进行多次调用(如在循环中)时才应该真正使用它。
应该可以获取正在执行的sqlConnection/Command -> 执行前不能在这里设置相关设置吗??
希望我有正确的结局......