示例#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));
 }