public IHiLoRepository GetRepository(string entityName, IHiLoConfiguration config) { IHiLoRepository repository = null; repository = _factoryFunction(entityName, config); repository.PrepareRepository(); return(repository); }
public void PrepareRepository(string entityName) { try { _repository.PrepareRepository(entityName); } catch (Exception ex) { throw new NHiLoException(ErrorCodes.ErrorWhilePreparingRepository, ex); } }