示例#1
0
        public SchemaManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.conn = session.Connection;
            this.tableManager = new TableManager(session);
            this.columnManager = new ColumnManager();
            this.constraintManager = new ConstraintManager();
            this.indexManager = new IndexManager();
        }
示例#2
0
        public TableManager(SessionManager.Session session)
        {
            if (session == null)
                throw new ArgumentNullException("Session");

            this.session = session;
            this.manager = session.SchemaManager;
            this.conn = session.Connection;
            this.columnManager = manager.ColumnManager;
            this.constraintManager = manager.ConstraintManager;
            this.indexManager = manager.IndexManager;
        }
示例#3
0
            public LocalColumnManager(SessionManager.Session session)
            {
                if (session == null)
                    throw new ArgumentNullException("Session");

                this.session = session;
                this.conn = this.session.Connection;
                manager = this.session.SchemaManager.ColumnManager;
                // set up event handlers
                this.manager.AllColumnsRefreshed += new AllColumnsRefreshedHandler(manager_AllColumnsRefreshed);
            }