예제 #1
0
 internal View(Schema schema, string name, SqlNative definition, CheckOptions checkOptions)
     : base(schema, name)
 {
     columns           = new PairedNodeCollection <View, ViewColumn>(this, "ViewColumns");
     this.definition   = definition;
     this.checkOptions = checkOptions;
 }
예제 #2
0
 internal Domain(Schema schema, string name, SqlValueType dataType, SqlExpression defaultValue) : base(schema, name)
 {
     this.dataType     = dataType;
     this.defaultValue = defaultValue;
     constraints       =
         new PairedNodeCollection <Domain, DomainConstraint>(this, "DomainConstraints");
 }
예제 #3
0
 internal Table(Schema schema, string name)
     : base(schema, name)
 {
     columns =
         new PairedNodeCollection <Table, TableColumn>(this, "TableColumns");
     constraints =
         new PairedNodeCollection <Table, TableConstraint>(this, "TableConstraints");
 }
예제 #4
0
        // Constructors

        internal Schema(Catalog catalog, string name)
            : base(catalog, name)
        {
            Tables        = new PairedNodeCollection <Schema, Table>(this, "Tables");
            Views         = new PairedNodeCollection <Schema, View>(this, "Views");
            Assertions    = new PairedNodeCollection <Schema, Assertion>(this, "Assertions");
            CharacterSets = new PairedNodeCollection <Schema, CharacterSet>(this, "CharacterSets");
            Collations    = new PairedNodeCollection <Schema, Collation>(this, "Collations");
            Translations  = new PairedNodeCollection <Schema, Translation>(this, "Translations");
            Domains       = new PairedNodeCollection <Schema, Domain>(this, "Domains");
            Sequences     = new PairedNodeCollection <Schema, Sequence>(this, "Sequences");
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataTable"/> class.
 /// </summary>
 /// <param name="schema">The schema.</param>
 /// <param name="name">The name.</param>
 protected DataTable(Schema schema, string name) : base(schema, name)
 {
     indexes = new PairedNodeCollection <DataTable, Index>(this, "Indexes");
 }
 private PartitionDescriptor(IPartitionable owner, TableColumn column)
 {
     this.owner = owner;
     Column     = column;
     partitions = new PairedNodeCollection <PartitionDescriptor, Partition>(this, "Partitions");
 }
예제 #7
0
 internal View(Schema schema, string name)
     : base(schema, name)
 {
     columns = new PairedNodeCollection <View, ViewColumn>(this, "ViewColumns");
 }
예제 #8
0
 internal Index(DataTable dataTable, string name) : base(dataTable, name)
 {
     nonkeyColumns = new NodeCollection <DataTableColumn>();
     columns       = new PairedNodeCollection <Index, IndexColumn>(this, "Columns");
 }
예제 #9
0
        // Constructors

        public Catalog(string name) : base(name)
        {
            schemas =
                new PairedNodeCollection <Catalog, Schema>(this, "Schemas", 1);
        }