Exemplo n.º 1
16
        public RelationalScaffoldingModelFactory(
            [NotNull] IOperationReporter reporter,
            [NotNull] IRelationalTypeMapper typeMapper,
            [NotNull] IDatabaseModelFactory databaseModelFactory,
            [NotNull] ICandidateNamingService candidateNamingService,
            [NotNull] IPluralizer pluralizer,
            [NotNull] ICSharpUtilities cSharpUtilities,
            [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper)
        {
            Check.NotNull(reporter, nameof(reporter));
            Check.NotNull(typeMapper, nameof(typeMapper));
            Check.NotNull(databaseModelFactory, nameof(databaseModelFactory));
            Check.NotNull(candidateNamingService, nameof(candidateNamingService));
            Check.NotNull(pluralizer, nameof(pluralizer));
            Check.NotNull(cSharpUtilities, nameof(cSharpUtilities));
            Check.NotNull(scaffoldingTypeMapper, nameof(scaffoldingTypeMapper));

            Reporter               = reporter;
            TypeMapper             = typeMapper;
            CandidateNamingService = candidateNamingService;
            _databaseModelFactory  = databaseModelFactory;
            _pluralizer            = pluralizer;
            _cSharpUtilities       = cSharpUtilities;
            _scaffoldingTypeMapper = scaffoldingTypeMapper;
        }
Exemplo n.º 2
0
 public FakeScaffoldingModelFactory(
     IOperationReporter reporter,
     ICandidateNamingService candidateNamingService,
     IPluralizer pluralizer,
     ICSharpUtilities cSharpUtilities,
     IScaffoldingTypeMapper scaffoldingTypeMapper)
     : base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper)
 {
 }
Exemplo n.º 3
0
 public FakeScaffoldingModelFactory(
     IOperationReporter reporter,
     ICandidateNamingService candidateNamingService,
     IPluralizer pluralizer,
     ICSharpUtilities cSharpUtilities,
     IScaffoldingTypeMapper scaffoldingTypeMapper,
     LoggingDefinitions loggingDefinitions,
     IModelRuntimeInitializer modelRuntimeInitializer)
     : base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper, loggingDefinitions, modelRuntimeInitializer)
 {
 }
 /// <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>
 public RelationalScaffoldingModelFactory(
     IOperationReporter reporter,
     ICandidateNamingService candidateNamingService,
     IPluralizer pluralizer,
     ICSharpUtilities cSharpUtilities,
     IScaffoldingTypeMapper scaffoldingTypeMapper)
 {
     _reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
     _candidateNamingService = candidateNamingService ?? throw new ArgumentNullException(nameof(candidateNamingService));
     _pluralizer             = pluralizer ?? throw new ArgumentNullException(nameof(pluralizer));
     _cSharpUtilities        = cSharpUtilities ?? throw new ArgumentNullException(nameof(cSharpUtilities));
     _scaffoldingTypeMapper  = scaffoldingTypeMapper ?? throw new ArgumentNullException(nameof(scaffoldingTypeMapper));
 }
        public RelationalScaffoldingModelFactoryBase(
            [NotNull] IOperationReporter reporter,
            [NotNull] ICandidateNamingService candidateNamingService,
            [NotNull] IPluralizer pluralizer,
            [NotNull] ICSharpUtilities cSharpUtilities,
            [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper)
        {
            Check.NotNull(reporter, nameof(reporter));
            Check.NotNull(candidateNamingService, nameof(candidateNamingService));
            Check.NotNull(pluralizer, nameof(pluralizer));
            Check.NotNull(cSharpUtilities, nameof(cSharpUtilities));
            Check.NotNull(scaffoldingTypeMapper, nameof(scaffoldingTypeMapper));

            this._reporter = reporter;
            this._candidateNamingService = candidateNamingService;
            this._pluralizer             = pluralizer;
            this._cSharpUtilities        = cSharpUtilities;
            this._scaffoldingTypeMapper  = scaffoldingTypeMapper;
        }
        /// <summary>
        ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
        ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
        ///     any release. You should only use it directly in your code with extreme caution and knowing that
        ///     doing so can result in application failures when updating to a new Entity Framework Core release.
        /// </summary>
        public RelationalScaffoldingModelFactory(
            [NotNull] IOperationReporter reporter,
            [NotNull] ICandidateNamingService candidateNamingService,
            [NotNull] IPluralizer pluralizer,
            [NotNull] ICSharpUtilities cSharpUtilities,
            [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper,
            [NotNull] LoggingDefinitions loggingDefinitions)
        {
            Check.NotNull(reporter, nameof(reporter));
            Check.NotNull(candidateNamingService, nameof(candidateNamingService));
            Check.NotNull(pluralizer, nameof(pluralizer));
            Check.NotNull(cSharpUtilities, nameof(cSharpUtilities));
            Check.NotNull(scaffoldingTypeMapper, nameof(scaffoldingTypeMapper));
            Check.NotNull(loggingDefinitions, nameof(loggingDefinitions));

            _reporter = reporter;
            _candidateNamingService = candidateNamingService;
            _pluralizer             = pluralizer;
            _cSharpUtilities        = cSharpUtilities;
            _scaffoldingTypeMapper  = scaffoldingTypeMapper;
            _loggingDefinitions     = loggingDefinitions;
        }
 public MyScaffoldingModelFactory([NotNull] IOperationReporter reporter, [NotNull] ICandidateNamingService candidateNamingService, [NotNull] IPluralizer pluralizer, [NotNull] ICSharpUtilities cSharpUtilities, [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper) : base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper)
 {
     this.Data = new Dictionary <string, string>();
 }
        public ColumnRemovingScaffoldingModelFactory([NotNull] IOperationReporter reporter, [NotNull] ICandidateNamingService candidateNamingService, [NotNull] IPluralizer pluralizer, [NotNull] ICSharpUtilities cSharpUtilities, [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper, [NotNull] LoggingDefinitions loggingDefinitions, List <SerializationTableModel> tables, DatabaseType databaseType) :
            base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper, loggingDefinitions)
#endif
        {
            _tables       = tables;
            _databaseType = databaseType;
        }
 public ColumnRemovingScaffoldingModelFactory([NotNull] IOperationReporter reporter, [NotNull] ICandidateNamingService candidateNamingService, [NotNull] IPluralizer pluralizer, [NotNull] ICSharpUtilities cSharpUtilities, [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper, [NotNull] LoggingDefinitions loggingDefinitions, [NotNull] IModelRuntimeInitializer modelRuntimeInitializer, List <SerializationTableModel> tables, DatabaseType databaseType, bool ignoreManyToMany) :
     base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper, loggingDefinitions, modelRuntimeInitializer)
 public CustomScaffoldingModelFactory([NotNull] IOperationReporter reporter, [NotNull] ICandidateNamingService candidateNamingService, [NotNull] IPluralizer pluralizer, [NotNull] ICSharpUtilities cSharpUtilities, [NotNull] IScaffoldingTypeMapper scaffoldingTypeMapper) : base(reporter, candidateNamingService, pluralizer, cSharpUtilities, scaffoldingTypeMapper)
 {
 }