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

📄 dataset2.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 4 页
字号:
                System::Int32 A1, 
                System::Decimal A2, 
                System::Decimal A3, 
                System::Decimal A4, 
                System::Decimal A5, 
                System::Decimal A6, 
                System::Decimal A7, 
                System::Decimal A8, 
                System::Decimal A9, 
                System::Decimal A10, 
                System::Decimal A11, 
                System::Decimal A12, 
                System::Decimal A13, 
                System::Decimal A14, 
                System::Decimal A15, 
                System::Decimal A16, 
                System::Decimal A17, 
                System::Decimal A18, 
                System::Decimal A19, 
                System::Decimal A20, 
                System::Decimal A21, 
                System::Decimal A22) {
        My::DataSet2::A0Row *  rowA0Row = (__try_cast<My::DataSet2::A0Row *  >(this->NewRow()));
        System::Object* __mcTemp__1[] = new System::Object*[22];
                __mcTemp__1[0] = __box(A1);
                __mcTemp__1[1] = __box(A2);
                __mcTemp__1[2] = __box(A3);
                __mcTemp__1[3] = __box(A4);
                __mcTemp__1[4] = __box(A5);
                __mcTemp__1[5] = __box(A6);
                __mcTemp__1[6] = __box(A7);
                __mcTemp__1[7] = __box(A8);
                __mcTemp__1[8] = __box(A9);
                __mcTemp__1[9] = __box(A10);
                __mcTemp__1[10] = __box(A11);
                __mcTemp__1[11] = __box(A12);
                __mcTemp__1[12] = __box(A13);
                __mcTemp__1[13] = __box(A14);
                __mcTemp__1[14] = __box(A15);
                __mcTemp__1[15] = __box(A16);
                __mcTemp__1[16] = __box(A17);
                __mcTemp__1[17] = __box(A18);
                __mcTemp__1[18] = __box(A19);
                __mcTemp__1[19] = __box(A20);
                __mcTemp__1[20] = __box(A21);
                __mcTemp__1[21] = __box(A22);
        rowA0Row->ItemArray = __mcTemp__1;
        this->Rows->Add(rowA0Row);
        return rowA0Row;
    };
    
    inline My::DataSet2::A0Row *  DataSet2::A0DataTable::FindByA1(System::Int32 A1) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = __box(A1);
        return (__try_cast<My::DataSet2::A0Row *  >(this->Rows->Find(__mcTemp__1)));
    };
    
    inline System::Collections::IEnumerator *  DataSet2::A0DataTable::GetEnumerator() {
        return this->Rows->GetEnumerator();
    };
    
    inline System::Data::DataTable *  DataSet2::A0DataTable::Clone() {
        My::DataSet2::A0DataTable *  cln = (__try_cast<My::DataSet2::A0DataTable *  >(__super::Clone()));
        cln->InitVars();
        return cln;
    };
    
    inline System::Data::DataTable *  DataSet2::A0DataTable::CreateInstance() {
        return new My::DataSet2::A0DataTable();
    };
    
    inline System::Void DataSet2::A0DataTable::InitVars() {
        this->columnA1 = this->Columns->Item[S"A1"];
        this->columnA2 = this->Columns->Item[S"A2"];
        this->columnA3 = this->Columns->Item[S"A3"];
        this->columnA4 = this->Columns->Item[S"A4"];
        this->columnA5 = this->Columns->Item[S"A5"];
        this->columnA6 = this->Columns->Item[S"A6"];
        this->columnA7 = this->Columns->Item[S"A7"];
        this->columnA8 = this->Columns->Item[S"A8"];
        this->columnA9 = this->Columns->Item[S"A9"];
        this->columnA10 = this->Columns->Item[S"A10"];
        this->columnA11 = this->Columns->Item[S"A11"];
        this->columnA12 = this->Columns->Item[S"A12"];
        this->columnA13 = this->Columns->Item[S"A13"];
        this->columnA14 = this->Columns->Item[S"A14"];
        this->columnA15 = this->Columns->Item[S"A15"];
        this->columnA16 = this->Columns->Item[S"A16"];
        this->columnA17 = this->Columns->Item[S"A17"];
        this->columnA18 = this->Columns->Item[S"A18"];
        this->columnA19 = this->Columns->Item[S"A19"];
        this->columnA20 = this->Columns->Item[S"A20"];
        this->columnA21 = this->Columns->Item[S"A21"];
        this->columnA22 = this->Columns->Item[S"A22"];
    };
    
    inline System::Void DataSet2::A0DataTable::InitClass() {
        this->columnA1 = new System::Data::DataColumn(S"A1", __typeof(System::Int32), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA1);
        this->columnA2 = new System::Data::DataColumn(S"A2", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA2);
        this->columnA3 = new System::Data::DataColumn(S"A3", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA3);
        this->columnA4 = new System::Data::DataColumn(S"A4", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA4);
        this->columnA5 = new System::Data::DataColumn(S"A5", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA5);
        this->columnA6 = new System::Data::DataColumn(S"A6", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA6);
        this->columnA7 = new System::Data::DataColumn(S"A7", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA7);
        this->columnA8 = new System::Data::DataColumn(S"A8", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA8);
        this->columnA9 = new System::Data::DataColumn(S"A9", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA9);
        this->columnA10 = new System::Data::DataColumn(S"A10", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA10);
        this->columnA11 = new System::Data::DataColumn(S"A11", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA11);
        this->columnA12 = new System::Data::DataColumn(S"A12", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA12);
        this->columnA13 = new System::Data::DataColumn(S"A13", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA13);
        this->columnA14 = new System::Data::DataColumn(S"A14", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA14);
        this->columnA15 = new System::Data::DataColumn(S"A15", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA15);
        this->columnA16 = new System::Data::DataColumn(S"A16", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA16);
        this->columnA17 = new System::Data::DataColumn(S"A17", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA17);
        this->columnA18 = new System::Data::DataColumn(S"A18", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA18);
        this->columnA19 = new System::Data::DataColumn(S"A19", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA19);
        this->columnA20 = new System::Data::DataColumn(S"A20", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA20);
        this->columnA21 = new System::Data::DataColumn(S"A21", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA21);
        this->columnA22 = new System::Data::DataColumn(S"A22", __typeof(System::Decimal), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnA22);
        System::Data::DataColumn* __mcTemp__1[] = new System::Data::DataColumn*[1];
                        __mcTemp__1[0] = this->columnA1;
        this->Constraints->Add(new System::Data::UniqueConstraint(S"Constraint1", __mcTemp__1, true));
        this->columnA1->AllowDBNull = false;
        this->columnA1->Unique = true;
    };
    
    inline My::DataSet2::A0Row *  DataSet2::A0DataTable::NewA0Row() {
        return (__try_cast<My::DataSet2::A0Row *  >(this->NewRow()));
    };
    
    inline System::Data::DataRow *  DataSet2::A0DataTable::NewRowFromBuilder(System::Data::DataRowBuilder *  builder) {
        return new My::DataSet2::A0Row(builder);
    };
    
    inline System::Type *  DataSet2::A0DataTable::GetRowType() {
        return __typeof(My::DataSet2::A0Row);
    };
    
    inline System::Void DataSet2::A0DataTable::OnRowChanged(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowChanged(e);
        if ((this->A0RowChanged != 0)) {
            this->A0RowChanged(this, new My::DataSet2::A0RowChangeEvent((__try_cast<My::DataSet2::A0Row *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet2::A0DataTable::OnRowChanging(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowChanging(e);
        if ((this->A0RowChanging != 0)) {
            this->A0RowChanging(this, new My::DataSet2::A0RowChangeEvent((__try_cast<My::DataSet2::A0Row *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet2::A0DataTable::OnRowDeleted(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowDeleted(e);
        if ((this->A0RowDeleted != 0)) {
            this->A0RowDeleted(this, new My::DataSet2::A0RowChangeEvent((__try_cast<My::DataSet2::A0Row *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet2::A0DataTable::OnRowDeleting(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowDeleting(e);
        if ((this->A0RowDeleting != 0)) {
            this->A0RowDeleting(this, new My::DataSet2::A0RowChangeEvent((__try_cast<My::DataSet2::A0Row *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet2::A0DataTable::RemoveA0Row(My::DataSet2::A0Row *  row) {
        this->Rows->Remove(row);
    };
    
    
    
    inline DataSet2::A0Row::A0Row(System::Data::DataRowBuilder *  rb) : 
            DataRow(rb) {
        this->tableA0 = (__try_cast<My::DataSet2::A0DataTable *  >(this->Table));
    }
    
    inline System::Int32 DataSet2::A0Row::get_A1() {
        return (*__try_cast<__box System::Int32 *  >(this->Item[this->tableA0->A1Column]));
    }
    inline void DataSet2::A0Row::set_A1(System::Int32 value) {
        this->Item[this->tableA0->A1Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A2() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A2Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A2(System::Decimal value) {
        this->Item[this->tableA0->A2Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A3() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A3Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A3(System::Decimal value) {
        this->Item[this->tableA0->A3Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A4() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A4Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A4(System::Decimal value) {
        this->Item[this->tableA0->A4Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A5() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A5Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A5(System::Decimal value) {
        this->Item[this->tableA0->A5Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A6() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A6Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A6(System::Decimal value) {
        this->Item[this->tableA0->A6Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A7() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A7Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A7(System::Decimal value) {
        this->Item[this->tableA0->A7Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A8() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A8Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A8(System::Decimal value) {
        this->Item[this->tableA0->A8Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A9() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A9Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A9(System::Decimal value) {
        this->Item[this->tableA0->A9Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A10() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A10Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet2::A0Row::set_A10(System::Decimal value) {
        this->Item[this->tableA0->A10Column] = __box(value);
    }
    
    inline System::Decimal DataSet2::A0Row::get_A11() {
        try {
            return (*__try_cast<__box System::Decimal *  >(this->Item[this->tableA0->A11Column]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }

⌨️ 快捷键说明

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