Replies: 3 comments
-
Hi @prodev443, I can't reproduce the issue you're experiencing. For further analysis, please provide a runnable repro. BTW, You don't need to use
|
Beta Was this translation helpful? Give feedback.
-
Hi @hakenr , Thanks for your attendance and support. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi @prodev443, The issue isn't actually with You can solve this by using public class CustomerService(IDbContextFactory<DataContext> contextFactory)
{
private readonly IDbContextFactory<DataContext> _contextFactory = contextFactory;
...
public async Task<IEnumerable<Customer>> ListAsync(CustomerFilter filter, int startIndex, int size = 10, CancellationToken cancellationToken = default)
{
using var context = await _contextFactory.CreateDbContextAsync(cancellationToken);
var query = Filter(context.Customers.AsQueryable(), filter);
return await query
.Skip(startIndex)
.Take(size)
.ToListAsync(cancellationToken);
}
...
} In builder.Services.AddDbContextFactory<DataContext>(
options => options.UseSqlServer(connection)
); |
Beta Was this translation helpful? Give feedback.
-
Hi
I have the following problem.
I need to update an HxGrid data with a button click, so I'm using the following code:
Can you help me please?
Datagrid.zip
Beta Was this translation helpful? Give feedback.
All reactions