你应该避免使用属性吗?
如果您无法修改数据库存储过程,那么您可以使用NotSupported属性来暂停已有事务上下文,以避免这种致命的异常。
If you cannot change the database stored procedure, you can use the NotSupported attribute to suspend the existing transaction context to avoid this fatal exception.
注意,在配置属性文件中使用了Base64编码形式的用户名和密码,以避免此敏感信息意外暴露。
Notice that a base64 encoding of both the username and the password is used in the configuration properties file to avoid casual exposure of this sensitive information.
应用推荐