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

📄 dataset1.h

📁 数据库开发
💻 H
📖 第 1 页 / 共 2 页
字号:
            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 DataSet1::ReadersDataTable::get_Count() {
        return this->Rows->Count;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_BookCountColumn() {
        return this->columnBookCount;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_CanBorrowColumn() {
        return this->columnCanBorrow;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_ContactColumn() {
        return this->columnContact;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_NameColumn() {
        return this->columnName;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_PasswordColumn() {
        return this->columnPassword;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_ReaderIDColumn() {
        return this->columnReaderID;
    }
    
    inline System::Data::DataColumn *  DataSet1::ReadersDataTable::get_ReaderKindColumn() {
        return this->columnReaderKind;
    }
    
    inline VCDotnet::DataSet1::ReadersRow *  DataSet1::ReadersDataTable::get_Item(System::Int32 index) {
        return (__try_cast<VCDotnet::DataSet1::ReadersRow *  >(this->Rows->Item[index]));
    }
    
    
    
    
    
    inline System::Void DataSet1::ReadersDataTable::AddReadersRow(VCDotnet::DataSet1::ReadersRow *  row) {
        this->Rows->Add(row);
    };
    
    inline VCDotnet::DataSet1::ReadersRow *  DataSet1::ReadersDataTable::AddReadersRow(System::Int32 BookCount, System::Boolean CanBorrow, System::String *  Contact, System::String *  Name, System::String *  Password, System::Int32 ReaderID, System::Int32 ReaderKind) {
        VCDotnet::DataSet1::ReadersRow *  rowReadersRow = (__try_cast<VCDotnet::DataSet1::ReadersRow *  >(this->NewRow()));
        System::Object* __mcTemp__1[] = new System::Object*[7];
                __mcTemp__1[0] = __box(BookCount);
                __mcTemp__1[1] = __box(CanBorrow);
                __mcTemp__1[2] = Contact;
                __mcTemp__1[3] = Name;
                __mcTemp__1[4] = Password;
                __mcTemp__1[5] = __box(ReaderID);
                __mcTemp__1[6] = __box(ReaderKind);
        rowReadersRow->ItemArray = __mcTemp__1;
        this->Rows->Add(rowReadersRow);
        return rowReadersRow;
    };
    
    inline VCDotnet::DataSet1::ReadersRow *  DataSet1::ReadersDataTable::FindByReaderID(System::Int32 ReaderID) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = __box(ReaderID);
        return (__try_cast<VCDotnet::DataSet1::ReadersRow *  >(this->Rows->Find(__mcTemp__1)));
    };
    
    inline System::Collections::IEnumerator *  DataSet1::ReadersDataTable::GetEnumerator() {
        return this->Rows->GetEnumerator();
    };
    
    inline System::Data::DataTable *  DataSet1::ReadersDataTable::Clone() {
        VCDotnet::DataSet1::ReadersDataTable *  cln = (__try_cast<VCDotnet::DataSet1::ReadersDataTable *  >(__super::Clone()));
        cln->InitVars();
        return cln;
    };
    
    inline System::Data::DataTable *  DataSet1::ReadersDataTable::CreateInstance() {
        return new VCDotnet::DataSet1::ReadersDataTable();
    };
    
    inline System::Void DataSet1::ReadersDataTable::InitVars() {
        this->columnBookCount = this->Columns->Item[S"BookCount"];
        this->columnCanBorrow = this->Columns->Item[S"CanBorrow"];
        this->columnContact = this->Columns->Item[S"Contact"];
        this->columnName = this->Columns->Item[S"Name"];
        this->columnPassword = this->Columns->Item[S"Password"];
        this->columnReaderID = this->Columns->Item[S"ReaderID"];
        this->columnReaderKind = this->Columns->Item[S"ReaderKind"];
    };
    
    inline System::Void DataSet1::ReadersDataTable::InitClass() {
        this->columnBookCount = new System::Data::DataColumn(S"BookCount", __typeof(System::Int32), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnBookCount);
        this->columnCanBorrow = new System::Data::DataColumn(S"CanBorrow", __typeof(System::Boolean), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnCanBorrow);
        this->columnContact = new System::Data::DataColumn(S"Contact", __typeof(System::String), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnContact);
        this->columnName = new System::Data::DataColumn(S"Name", __typeof(System::String), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnName);
        this->columnPassword = new System::Data::DataColumn(S"Password", __typeof(System::String), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnPassword);
        this->columnReaderID = new System::Data::DataColumn(S"ReaderID", __typeof(System::Int32), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnReaderID);
        this->columnReaderKind = new System::Data::DataColumn(S"ReaderKind", __typeof(System::Int32), 0, System::Data::MappingType::Element);
        this->Columns->Add(this->columnReaderKind);
        System::Data::DataColumn* __mcTemp__1[] = new System::Data::DataColumn*[1];
                        __mcTemp__1[0] = this->columnReaderID;
        this->Constraints->Add(new System::Data::UniqueConstraint(S"Constraint1", __mcTemp__1, true));
        this->columnReaderID->AllowDBNull = false;
        this->columnReaderID->Unique = true;
    };
    
    inline VCDotnet::DataSet1::ReadersRow *  DataSet1::ReadersDataTable::NewReadersRow() {
        return (__try_cast<VCDotnet::DataSet1::ReadersRow *  >(this->NewRow()));
    };
    
    inline System::Data::DataRow *  DataSet1::ReadersDataTable::NewRowFromBuilder(System::Data::DataRowBuilder *  builder) {
        return new VCDotnet::DataSet1::ReadersRow(builder);
    };
    
    inline System::Type *  DataSet1::ReadersDataTable::GetRowType() {
        return __typeof(VCDotnet::DataSet1::ReadersRow);
    };
    
    inline System::Void DataSet1::ReadersDataTable::OnRowChanged(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowChanged(e);
        if ((this->ReadersRowChanged != 0)) {
            this->ReadersRowChanged(this, new VCDotnet::DataSet1::ReadersRowChangeEvent((__try_cast<VCDotnet::DataSet1::ReadersRow *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet1::ReadersDataTable::OnRowChanging(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowChanging(e);
        if ((this->ReadersRowChanging != 0)) {
            this->ReadersRowChanging(this, new VCDotnet::DataSet1::ReadersRowChangeEvent((__try_cast<VCDotnet::DataSet1::ReadersRow *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet1::ReadersDataTable::OnRowDeleted(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowDeleted(e);
        if ((this->ReadersRowDeleted != 0)) {
            this->ReadersRowDeleted(this, new VCDotnet::DataSet1::ReadersRowChangeEvent((__try_cast<VCDotnet::DataSet1::ReadersRow *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet1::ReadersDataTable::OnRowDeleting(System::Data::DataRowChangeEventArgs *  e) {
        __super::OnRowDeleting(e);
        if ((this->ReadersRowDeleting != 0)) {
            this->ReadersRowDeleting(this, new VCDotnet::DataSet1::ReadersRowChangeEvent((__try_cast<VCDotnet::DataSet1::ReadersRow *  >(e->Row)), e->Action));
        }
    };
    
    inline System::Void DataSet1::ReadersDataTable::RemoveReadersRow(VCDotnet::DataSet1::ReadersRow *  row) {
        this->Rows->Remove(row);
    };
    
    
    
    inline DataSet1::ReadersRow::ReadersRow(System::Data::DataRowBuilder *  rb) : 
            DataRow(rb) {
        this->tableReaders = (__try_cast<VCDotnet::DataSet1::ReadersDataTable *  >(this->Table));
    }
    
    inline System::Int32 DataSet1::ReadersRow::get_BookCount() {
        try {
            return (*__try_cast<__box System::Int32 *  >(this->Item[this->tableReaders->BookCountColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_BookCount(System::Int32 value) {
        this->Item[this->tableReaders->BookCountColumn] = __box(value);
    }
    
    inline System::Boolean DataSet1::ReadersRow::get_CanBorrow() {
        try {
            return (*__try_cast<__box System::Boolean *  >(this->Item[this->tableReaders->CanBorrowColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_CanBorrow(System::Boolean value) {
        this->Item[this->tableReaders->CanBorrowColumn] = __box(value);
    }
    
    inline System::String *  DataSet1::ReadersRow::get_Contact() {
        try {
            return (__try_cast<System::String *  >(this->Item[this->tableReaders->ContactColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_Contact(System::String *  value) {
        this->Item[this->tableReaders->ContactColumn] = value;
    }
    
    inline System::String *  DataSet1::ReadersRow::get_Name() {
        try {
            return (__try_cast<System::String *  >(this->Item[this->tableReaders->NameColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_Name(System::String *  value) {
        this->Item[this->tableReaders->NameColumn] = value;
    }
    
    inline System::String *  DataSet1::ReadersRow::get_Password() {
        try {
            return (__try_cast<System::String *  >(this->Item[this->tableReaders->PasswordColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_Password(System::String *  value) {
        this->Item[this->tableReaders->PasswordColumn] = value;
    }
    
    inline System::Int32 DataSet1::ReadersRow::get_ReaderID() {
        return (*__try_cast<__box System::Int32 *  >(this->Item[this->tableReaders->ReaderIDColumn]));
    }
    inline void DataSet1::ReadersRow::set_ReaderID(System::Int32 value) {
        this->Item[this->tableReaders->ReaderIDColumn] = __box(value);
    }
    
    inline System::Int32 DataSet1::ReadersRow::get_ReaderKind() {
        try {
            return (*__try_cast<__box System::Int32 *  >(this->Item[this->tableReaders->ReaderKindColumn]));
        }
        catch (System::InvalidCastException * e) {
            throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
        }
    }
    inline void DataSet1::ReadersRow::set_ReaderKind(System::Int32 value) {
        this->Item[this->tableReaders->ReaderKindColumn] = __box(value);
    }
    
    inline System::Boolean DataSet1::ReadersRow::IsBookCountNull() {
        return this->IsNull(this->tableReaders->BookCountColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetBookCountNull() {
        this->Item[this->tableReaders->BookCountColumn] = System::Convert::DBNull;
    };
    
    inline System::Boolean DataSet1::ReadersRow::IsCanBorrowNull() {
        return this->IsNull(this->tableReaders->CanBorrowColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetCanBorrowNull() {
        this->Item[this->tableReaders->CanBorrowColumn] = System::Convert::DBNull;
    };
    
    inline System::Boolean DataSet1::ReadersRow::IsContactNull() {
        return this->IsNull(this->tableReaders->ContactColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetContactNull() {
        this->Item[this->tableReaders->ContactColumn] = System::Convert::DBNull;
    };
    
    inline System::Boolean DataSet1::ReadersRow::IsNameNull() {
        return this->IsNull(this->tableReaders->NameColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetNameNull() {
        this->Item[this->tableReaders->NameColumn] = System::Convert::DBNull;
    };
    
    inline System::Boolean DataSet1::ReadersRow::IsPasswordNull() {
        return this->IsNull(this->tableReaders->PasswordColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetPasswordNull() {
        this->Item[this->tableReaders->PasswordColumn] = System::Convert::DBNull;
    };
    
    inline System::Boolean DataSet1::ReadersRow::IsReaderKindNull() {
        return this->IsNull(this->tableReaders->ReaderKindColumn);
    };
    
    inline System::Void DataSet1::ReadersRow::SetReaderKindNull() {
        this->Item[this->tableReaders->ReaderKindColumn] = System::Convert::DBNull;
    };
    
    
    
    
    inline DataSet1::ReadersRowChangeEvent::ReadersRowChangeEvent(VCDotnet::DataSet1::ReadersRow *  row, System::Data::DataRowAction action) {
        this->eventRow = row;
        this->eventAction = action;
    }
    
    inline VCDotnet::DataSet1::ReadersRow *  DataSet1::ReadersRowChangeEvent::get_Row() {
        return this->eventRow;
    }
    
    inline System::Data::DataRowAction DataSet1::ReadersRowChangeEvent::get_Action() {
        return this->eventAction;
    }
}

⌨️ 快捷键说明

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