public ViewCreator(string connectionString, string schema, string viewSchema, string lookupSchema = null)
        {
            _connectionString = connectionString;
            _schema           = schema;
            _viewSchema       = viewSchema;
            _lookupSchema     = lookupSchema ?? viewSchema;

            _analyzer = new SchemaAnalyzer(connectionString, schema);
        }
Esempio n. 2
0
        public Builder(string connectionString, string dataMartSchemaOwner, string schema, string lookupSchema = null)
        {
            _connectionString    = connectionString;
            _schema              = schema;
            _lookupSchema        = lookupSchema;
            _dataMartSchemaOwner = dataMartSchemaOwner;

            if (lookupSchema != null)
            {
                CreateSchema(lookupSchema);
                DropExistingViews(lookupSchema);
            }

            _analyzer = new SchemaAnalyzer(_connectionString, _schema);
        }