/// <summary>
        /// Sets configured <see cref="EntityExtractor"/> for repository.
        /// </summary>
        public virtual void ConfigureExtractor()
        {
            var entityExtractorBuilder = new EntityExtractorBuilder <TSelector, TEntity>();

            DoConfigureExtractor(entityExtractorBuilder);

            foreach (var additionalConfiguration in _additionalConfigurations)
            {
                additionalConfiguration.RefineExtractConfiguration(entityExtractorBuilder, Set, Context);
            }

            EntityExtractor = entityExtractorBuilder.Build();
        }
Beispiel #2
0
 protected override void DoConfigureExtractor(EntityExtractorBuilder <SkillSelector, SkillEntity> builder)
 {
     builder.AddDiscoverRule(x => x.Id.HasValue, x => GetById(x.Id.Value));
 }