Пример #1
0
        private void AddDependenciesToRepository(IRepositoryContext repositoryContext, IEntityCommandRepository repository)
        {
            var dependencies = (_dependencies ?? Enumerable.Empty <EntityDependency>())
                               .Union(
                repositoryContext.Dependencies
                );

            if (dependencies.Any())
            {
                repository.Dependencies = () => dependencies;
            }
        }
Пример #2
0
 public EntityService(IEntityCommandRepository repository)
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }