public UserRoleRepository(CEDatabaseContext context, IPropertyMappingService <ModelsDto.UsuarioDto, Entities.Usuario> propertyMappingService, IMapper mapper) : base(context) { _propertyMappingService = propertyMappingService; _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } //if (_cancellationTokenSource != null) //{ // _cancellationTokenSource.Dispose(); // _cancellationTokenSource = null; //} } }
public BaseRepository(CEDatabaseContext context) { _context = context; }
public RoleRepository(CEDatabaseContext context) : base(context) { }
public UnitOfWork(Entities.CEDatabaseContext context) { _context = context; }