registerEntityRepository<O extends Object> method

  1. @override
void registerEntityRepository<O extends Object>(
  1. EntityRepository<O> entityRepository
)
override

Implementation

@override
void registerEntityRepository<O extends Object>(
    EntityRepository<O> entityRepository) {
  checkNotClosed();

  _entityRepositories[entityRepository.type] = entityRepository;

  _entityRepositoriesByName[entityRepository.name] = entityRepository;
  _entityRepositoriesByNameSimplified[entityRepository.nameSimplified] =
      entityRepository;

  if (entityRepository is DBSQLEntityRepository<O>) {
    _entityRepositoriesByDBTableName[entityRepository.tableName] =
        entityRepository;
  }
}