feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.
This commit is contained in:
21
PARR.DAL/Repositories/ParrComponentRepository.cs
Normal file
21
PARR.DAL/Repositories/ParrComponentRepository.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using PARR.Core.Repositories.Interfaces;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.Domain.Entities;
|
||||
|
||||
namespace PARR.DAL.Repositories
|
||||
{
|
||||
internal class ParrComponentRepository : IParrComponentRepository
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
|
||||
public ParrComponentRepository(DataContext dataContext)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
}
|
||||
|
||||
public IQueryable<ParrComponent> Get()
|
||||
{
|
||||
return dataContext.ParrComponents;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user