added DataContext.cs
This commit is contained in:
parent
4e3c3e6149
commit
7d06084dfb
6 changed files with 50 additions and 4 deletions
|
|
@ -1,10 +1,19 @@
|
|||
using SurveyLib.Core.Models;
|
||||
using SurveyLib.Core.Repositories;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SurveyLib.Infrastructure.EFCore.Data;
|
||||
|
||||
namespace SurveyLib.Infrastructure.EFCore.Repositories;
|
||||
|
||||
public class AnswerRepository : IAnswerRepository
|
||||
{
|
||||
private readonly DataContext _context;
|
||||
|
||||
public AnswerRepository(DataContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public Task<Answer>? GetByIdAsync(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue