new Dictionary<EntityType, Dictionary<string, List<Property>>>(); // string is ConstraintId

        public SqlServerMetadataModelProvider([NotNull] IServiceProvider serviceProvider)
        {
            Check.NotNull(serviceProvider, nameof(serviceProvider));

            _logger = serviceProvider.GetRequiredService<ILogger>();
            _modelUtilities = serviceProvider.GetRequiredService<ModelUtilities>();
            _sqlServerLiteralUtilities = new SqlServerLiteralUtilities(_logger);
        }
Ejemplo n.º 2
0
            new Dictionary <EntityType, Dictionary <string, List <Property> > >(); // string is ConstraintId

        public SqlServerMetadataModelProvider([NotNull] ILogger logger, [NotNull] ModelUtilities modelUtilities)
        {
            Check.NotNull(logger, nameof(logger));
            Check.NotNull(modelUtilities, nameof(modelUtilities));

            _logger                    = logger;
            _modelUtilities            = modelUtilities;
            _sqlServerLiteralUtilities = new SqlServerLiteralUtilities(_logger);
        }
        public SqlServerScaffoldingModelFactory(
            [NotNull] ILoggerFactory loggerFactory,
            [NotNull] IRelationalTypeMapper typeMapper,
            [NotNull] IDatabaseModelFactory databaseModelFactory,
            [NotNull] SqlServerLiteralUtilities sqlServerLiteralUtilities)
            : base(loggerFactory, typeMapper, databaseModelFactory)
        {
            Check.NotNull(sqlServerLiteralUtilities, nameof(sqlServerLiteralUtilities));

            _sqlServerLiteralUtilities = sqlServerLiteralUtilities;
        }
Ejemplo n.º 4
0
        public SqlServerMetadataModelProvider(
            [NotNull] ILoggerFactory loggerFactory,
            [NotNull] ModelUtilities modelUtilities,
            [NotNull] CSharpUtilities cSharpUtilities,
            [NotNull] IRelationalAnnotationProvider extensionsProvider,
            [NotNull] SqlServerLiteralUtilities sqlServerLiteralUtilities)
            : base(loggerFactory, modelUtilities, cSharpUtilities)
        {
            Check.NotNull(extensionsProvider, nameof(extensionsProvider));
            Check.NotNull(sqlServerLiteralUtilities, nameof(sqlServerLiteralUtilities));

            ExtensionsProvider         = extensionsProvider;
            _sqlServerLiteralUtilities = sqlServerLiteralUtilities;
        }
Ejemplo n.º 5
0
 public SqlServerMetadataModelProvider([NotNull] ILogger logger, [NotNull] ModelUtilities modelUtilities)
     : base(logger, modelUtilities)
 {
     _sqlServerLiteralUtilities = new SqlServerLiteralUtilities(logger);
 }