private void AddDependenciesToRepository(IRepositoryContext repositoryContext, IEntityCommandRepository repository) { var dependencies = (_dependencies ?? Enumerable.Empty <EntityDependency>()) .Union( repositoryContext.Dependencies ); if (dependencies.Any()) { repository.Dependencies = () => dependencies; } }
public EntityService(IEntityCommandRepository repository) { this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); }