1. 用 Nhibernate:CountAsync 是定义在System.Data.Entity里的
var totalCount = await query.CountAsync();
出现以下错误:
System.InvalidOperationException: The provider for the source IQueryable doesn't implement IDbAsyncQueryProvider. Only providers that implement IDbAsyncQueryProvider can be used for Entity Framework asynchronous operations. Nhibernate 不支持异步???