-
Dear all, I am looking for a standard way to get async results from a LINQ queries. I know about Nhibernate extension methods but also tried Examples : IAsyncEnumerable<Blog> blogs = (from b in session.Query<Blog>() select b).ToAsyncEnumerable();
ValueTask<List<Blog>> list = blogs.ToListAsync(); bool b = await (from b in session.Query<User>() where u.Username.Equals("...") select b).ToAsyncEnumerable().AnyAsync(); It works but I just ran basic tests, any known issues ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Answered by
hazzik
Oct 5, 2020
Replies: 1 comment
-
There is only one issue: this code does not make any async queries. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ah1508
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is only one issue: this code does not make any async queries.