Added a-frame-architecture usiung wolverine sample.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using FinancialApi.Application.Interfaces;
|
||||
using FinancialApi.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FinancialApi.Infrastructure;
|
||||
|
||||
public class AccountQuery(AccountDbContext db) : IAccountQuery
|
||||
{
|
||||
public async Task<Account?> FindByIdAsync(int id)
|
||||
{
|
||||
return await db.Accounts.AsNoTracking()
|
||||
.FirstOrDefaultAsync(x => x.Id == id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user