32 lines
940 B
C#
32 lines
940 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using _0_Framework.InfraStructure;
|
|
using CompanyManagment.App.Contracts.CameraBugReport;
|
|
using Company.Domain.CameraBugReportAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CompanyManagment.EFCore.Repository
|
|
{
|
|
public class CameraBugReportRepository : RepositoryBase<long, CameraBugReport>, ICameraBugReportRepository
|
|
{
|
|
private readonly CompanyContext _companyContext;
|
|
|
|
public CameraBugReportRepository(CompanyContext companyContext) : base(companyContext)
|
|
{
|
|
_companyContext = companyContext;
|
|
}
|
|
|
|
IQueryable<CameraBugReport> ICameraBugReportRepository.GetAllAsNoTracking()
|
|
{
|
|
return _companyContext.CameraBugReports.AsNoTracking();
|
|
}
|
|
|
|
public bool IsExist(long id)
|
|
{
|
|
return _companyContext.CameraBugReports.Any(x => x.id == id);
|
|
}
|
|
}
|
|
}
|
|
|