Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MerchelloDatabaseSchemaHelper"/> class.
        /// </summary>
        /// <param name="db">
        /// The DB.
        /// </param>
        /// <param name="logger">
        /// The logger.
        /// </param>
        /// <param name="syntaxProvider">
        /// The syntax provider.
        /// </param>
        internal MerchelloDatabaseSchemaHelper(Database db, ILogger logger, ISqlSyntaxProvider syntaxProvider)
        {
            Mandate.ParameterNotNull(db, "db");
            Mandate.ParameterNotNull(logger, "logger");
            Mandate.ParameterNotNull(syntaxProvider, "syntaxProvider");

            _db             = db;
            _logger         = logger;
            _syntaxProvider = syntaxProvider;

            this._umbSchemaHelper = new DatabaseSchemaHelper(db, logger, syntaxProvider);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="MerchelloDatabaseSchemaHelper"/> class.
        /// </summary>
        /// <param name="db">
        /// The DB.
        /// </param>
        /// <param name="logger">
        /// The logger.
        /// </param>
        /// <param name="syntaxProvider">
        /// The syntax provider.
        /// </param>
        internal MerchelloDatabaseSchemaHelper(Database db, ILogger logger, ISqlSyntaxProvider syntaxProvider)
        {
            Mandate.ParameterNotNull(db, "db");
            Mandate.ParameterNotNull(logger, "logger");
            Mandate.ParameterNotNull(syntaxProvider, "syntaxProvider");

            _db = db;
            _logger = logger;
            _syntaxProvider = syntaxProvider;

            this._umbSchemaHelper = new DatabaseSchemaHelper(db, logger, syntaxProvider);            
        }