public MyModelSource(IDbSetFinder setFinder,
     ICoreConventionSetBuilder coreConventionSetBuilder,
     IModelCustomizer modelCustomizer,
     IModelCacheKeyFactory modelCacheKeyFactory)
     : base(setFinder,
         coreConventionSetBuilder,
         modelCustomizer,
         modelCacheKeyFactory)
 {
 }
示例#2
0
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used 
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        protected ModelSource([NotNull] IDbSetFinder setFinder, [NotNull] ICoreConventionSetBuilder coreConventionSetBuilder, [NotNull] IModelCustomizer modelCustomizer, [NotNull] IModelCacheKeyFactory modelCacheKeyFactory)
        {
            Check.NotNull(setFinder, nameof(setFinder));
            Check.NotNull(coreConventionSetBuilder, nameof(coreConventionSetBuilder));
            Check.NotNull(modelCustomizer, nameof(modelCustomizer));
            Check.NotNull(modelCacheKeyFactory, nameof(modelCacheKeyFactory));

            SetFinder = setFinder;
            CoreConventionSetBuilder = coreConventionSetBuilder;
            ModelCustomizer = modelCustomizer;
            ModelCacheKeyFactory = modelCacheKeyFactory;
        }
 public TestModelSource(Action<ModelBuilder> onModelCreating, IDbSetFinder setFinder, ICoreConventionSetBuilder coreConventionSetBuilder, IModelCustomizer modelCustomizer, IModelCacheKeyFactory modelCacheKeyFactory)
     : base(setFinder, coreConventionSetBuilder, modelCustomizer, modelCacheKeyFactory)
 {
     _onModelCreating = onModelCreating;
 }
 public MaterializingSqlServerModelSource(IDbSetFinder setFinder, ICoreConventionSetBuilder coreConventionSetBuilder, IModelCustomizer modelCustomizer, IModelCacheKeyFactory modelCacheKeyFactory)
     : base(setFinder, coreConventionSetBuilder, modelCustomizer, modelCacheKeyFactory)
 {
 }
 public SecurityModelSource([NotNull] IDbSetFinder setFinder,
                            [NotNull] ICoreConventionSetBuilder coreConventionSetBuilder,
                            [NotNull] IModelCustomizer modelCustomizer,
                            [NotNull] IModelCacheKeyFactory modelCacheKeyFactory) : base(setFinder, coreConventionSetBuilder, modelCustomizer, modelCacheKeyFactory)
 {
 }
示例#6
0
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        protected ModelSource([NotNull] IDbSetFinder setFinder, [NotNull] ICoreConventionSetBuilder coreConventionSetBuilder, [NotNull] IModelCustomizer modelCustomizer, [NotNull] IModelCacheKeyFactory modelCacheKeyFactory)
        {
            Check.NotNull(setFinder, nameof(setFinder));
            Check.NotNull(coreConventionSetBuilder, nameof(coreConventionSetBuilder));
            Check.NotNull(modelCustomizer, nameof(modelCustomizer));
            Check.NotNull(modelCacheKeyFactory, nameof(modelCacheKeyFactory));

            SetFinder = setFinder;
            CoreConventionSetBuilder = coreConventionSetBuilder;
            ModelCustomizer          = modelCustomizer;
            ModelCacheKeyFactory     = modelCacheKeyFactory;
        }
 /// <summary>
 ///     Clones this dependency parameter object with one service replaced.
 /// </summary>
 /// <param name="modelCacheKeyFactory"> A replacement for the current dependency of this type. </param>
 /// <returns> A new parameter object with the given service replaced. </returns>
 public ModelSourceDependencies With([NotNull] IModelCacheKeyFactory modelCacheKeyFactory)
 => new ModelSourceDependencies(ModelCustomizer, modelCacheKeyFactory);