⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset2.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 4 页
字号:
            public: System::Boolean IsA10Null();
            
            public: System::Void SetA10Null();
            
            public: System::Boolean IsA11Null();
            
            public: System::Void SetA11Null();
            
            public: System::Boolean IsA12Null();
            
            public: System::Void SetA12Null();
            
            public: System::Boolean IsA13Null();
            
            public: System::Void SetA13Null();
            
            public: System::Boolean IsA14Null();
            
            public: System::Void SetA14Null();
            
            public: System::Boolean IsA15Null();
            
            public: System::Void SetA15Null();
            
            public: System::Boolean IsA16Null();
            
            public: System::Void SetA16Null();
            
            public: System::Boolean IsA17Null();
            
            public: System::Void SetA17Null();
            
            public: System::Boolean IsA18Null();
            
            public: System::Void SetA18Null();
            
            public: System::Boolean IsA19Null();
            
            public: System::Void SetA19Null();
            
            public: System::Boolean IsA20Null();
            
            public: System::Void SetA20Null();
            
            public: System::Boolean IsA21Null();
            
            public: System::Void SetA21Null();
            
            public: System::Boolean IsA22Null();
            
            public: System::Void SetA22Null();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class A0RowChangeEvent : public System::EventArgs {
            
            private: My::DataSet2::A0Row *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: A0RowChangeEvent(My::DataSet2::A0Row *  row, System::Data::DataRowAction action);
            public:  __property My::DataSet2::A0Row *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        };
    
    
    
    inline DataSet2::DataSet2() {
        this->InitClass();
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline DataSet2::DataSet2(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context) {
        System::String *  strSchema = (__try_cast<System::String *  >(info->GetValue(S"XmlSchema", __typeof(System::String))));
        if ((strSchema != 0)) {
            System::Data::DataSet *  ds = new System::Data::DataSet();
            ds->ReadXmlSchema(new System::Xml::XmlTextReader(new System::IO::StringReader(strSchema)));
            if ((ds->Tables->Item[S"A0"] != 0)) {
                this->Tables->Add(new My::DataSet2::A0DataTable(ds->Tables->Item[S"A0"]));
            }
            this->DataSetName = ds->DataSetName;
            this->Prefix = ds->Prefix;
            this->Namespace = ds->Namespace;
            this->Locale = ds->Locale;
            this->CaseSensitive = ds->CaseSensitive;
            this->EnforceConstraints = ds->EnforceConstraints;
            this->Merge(ds, false, System::Data::MissingSchemaAction::Add);
            this->InitVars();
        }
        else {
            this->InitClass();
        }
        this->GetSerializationData(info, context);
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline My::DataSet2::A0DataTable *  DataSet2::get_A0() {
        return this->tableA0;
    }
    
    inline System::Data::DataSet *  DataSet2::Clone() {
        My::DataSet2 *  cln = (__try_cast<My::DataSet2 *  >(__super::Clone()));
        cln->InitVars();
        return cln;
    };
    
    inline System::Boolean DataSet2::ShouldSerializeTables() {
        return false;
    };
    
    inline System::Boolean DataSet2::ShouldSerializeRelations() {
        return false;
    };
    
    inline System::Void DataSet2::ReadXmlSerializable(System::Xml::XmlReader *  reader) {
        this->Reset();
        System::Data::DataSet *  ds = new System::Data::DataSet();
        ds->ReadXml(reader);
        if ((ds->Tables->Item[S"A0"] != 0)) {
            this->Tables->Add(new My::DataSet2::A0DataTable(ds->Tables->Item[S"A0"]));
        }
        this->DataSetName = ds->DataSetName;
        this->Prefix = ds->Prefix;
        this->Namespace = ds->Namespace;
        this->Locale = ds->Locale;
        this->CaseSensitive = ds->CaseSensitive;
        this->EnforceConstraints = ds->EnforceConstraints;
        this->Merge(ds, false, System::Data::MissingSchemaAction::Add);
        this->InitVars();
    };
    
    inline System::Xml::Schema::XmlSchema *  DataSet2::GetSchemaSerializable() {
        System::IO::MemoryStream *  stream = new System::IO::MemoryStream();
        this->WriteXmlSchema(new System::Xml::XmlTextWriter(stream, 0));
        stream->Position = 0;
        return System::Xml::Schema::XmlSchema::Read(new System::Xml::XmlTextReader(stream), 0);
    };
    
    inline System::Void DataSet2::InitVars() {
        this->tableA0 = (__try_cast<My::DataSet2::A0DataTable *  >(this->Tables->Item[S"A0"]));
        if ((this->tableA0 != 0)) {
            this->tableA0->InitVars();
        }
    };
    
    inline System::Void DataSet2::InitClass() {
        this->DataSetName = S"DataSet2";
        this->Prefix = S"";
        this->Namespace = S"http://www.tempuri.org/DataSet2.xsd";
        this->Locale = new System::Globalization::CultureInfo(S"zh-CN");
        this->CaseSensitive = false;
        this->EnforceConstraints = true;
        this->tableA0 = new My::DataSet2::A0DataTable();
        this->Tables->Add(this->tableA0);
    };
    
    inline System::Boolean DataSet2::ShouldSerializeA0() {
        return false;
    };
    
    inline System::Void DataSet2::SchemaChanged(System::Object *  sender, System::ComponentModel::CollectionChangeEventArgs *  e) {
        if ((e->Action == System::ComponentModel::CollectionChangeAction::Remove)) {
            this->InitVars();
        }
    };
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    inline DataSet2::A0DataTable::A0DataTable() : 
            DataTable(S"A0") {
        this->InitClass();
    }
    
    inline DataSet2::A0DataTable::A0DataTable(System::Data::DataTable *  table) : 
            DataTable(table->TableName) {
        if ((table->CaseSensitive != table->DataSet->CaseSensitive)) {
            this->CaseSensitive = table->CaseSensitive;
        }
        if ((table->Locale->ToString() != table->DataSet->Locale->ToString())) {
            this->Locale = table->Locale;
        }
        if ((table->Namespace != table->DataSet->Namespace)) {
            this->Namespace = table->Namespace;
        }
        this->Prefix = table->Prefix;
        this->MinimumCapacity = table->MinimumCapacity;
        this->DisplayExpression = table->DisplayExpression;
    }
    
    inline System::Int32 DataSet2::A0DataTable::get_Count() {
        return this->Rows->Count;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A1Column() {
        return this->columnA1;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A2Column() {
        return this->columnA2;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A3Column() {
        return this->columnA3;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A4Column() {
        return this->columnA4;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A5Column() {
        return this->columnA5;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A6Column() {
        return this->columnA6;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A7Column() {
        return this->columnA7;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A8Column() {
        return this->columnA8;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A9Column() {
        return this->columnA9;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A10Column() {
        return this->columnA10;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A11Column() {
        return this->columnA11;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A12Column() {
        return this->columnA12;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A13Column() {
        return this->columnA13;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A14Column() {
        return this->columnA14;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A15Column() {
        return this->columnA15;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A16Column() {
        return this->columnA16;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A17Column() {
        return this->columnA17;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A18Column() {
        return this->columnA18;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A19Column() {
        return this->columnA19;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A20Column() {
        return this->columnA20;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A21Column() {
        return this->columnA21;
    }
    
    inline System::Data::DataColumn *  DataSet2::A0DataTable::get_A22Column() {
        return this->columnA22;
    }
    
    inline My::DataSet2::A0Row *  DataSet2::A0DataTable::get_Item(System::Int32 index) {
        return (__try_cast<My::DataSet2::A0Row *  >(this->Rows->Item[index]));
    }
    
    
    
    
    
    inline System::Void DataSet2::A0DataTable::AddA0Row(My::DataSet2::A0Row *  row) {
        this->Rows->Add(row);
    };
    
    inline My::DataSet2::A0Row *  DataSet2::A0DataTable::AddA0Row(

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -