我发现从NHibernate 5.0开始,我可以调用以下代码来删除表中的所有记录:
session.Query<T>().Delete();
它在数据库上执行代码,而不通过网络复制代码,这应该会大大提高性能。但是这个查询超时了。
我得到以下错误:
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
我已经尝试在我的connectionstring中将连接超时设置设置为0和3600,但这没