[nhusers] Re: Sql Server async problem?

2018-02-18 Thread Andrew
Ok I found the problem. It's on my code. Maybe can help somebody this solution. My wrong code: public async Task GetList() { using (var session = _sessionFactory.OpenSession()) { return session.Query().Where(t => t.Visible == true

Re: [nhusers] Re: Sql Server async problem?

2018-02-18 Thread Gunnar Liljas
You can ”return await .ToListAsync” > On 17 Feb 2018, at 22:31, Andrew wrote: > > Ok I found the problem. It's on my code. Maybe can help somebody this > solution. > > My wrong code: > public async Task GetList() > { > using (var session