📄 dataset1.h
字号:
};
inline System::Boolean DataSet1::ShouldSerializegrade() {
return false;
};
inline System::Void DataSet1::SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e) {
if ((e->Action == System::ComponentModel::CollectionChangeAction::Remove)) {
this->InitVars();
}
};
inline DataSet1::gradeDataTable::gradeDataTable() :
DataTable(S"grade") {
this->InitClass();
}
inline DataSet1::gradeDataTable::gradeDataTable(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 DataSet1::gradeDataTable::get_Count() {
return this->Rows->Count;
}
inline System::Data::DataColumn * DataSet1::gradeDataTable::get_NameColumn() {
return this->columnName;
}
inline System::Data::DataColumn * DataSet1::gradeDataTable::get_MathColumn() {
return this->columnMath;
}
inline System::Data::DataColumn * DataSet1::gradeDataTable::get_LiteraryColumn() {
return this->columnLiterary;
}
inline System::Data::DataColumn * DataSet1::gradeDataTable::get_TotalColumn() {
return this->columnTotal;
}
inline ADONET::DataSet1::gradeRow * DataSet1::gradeDataTable::get_Item(System::Int32 index) {
return (__try_cast<ADONET::DataSet1::gradeRow * >(this->Rows->Item[index]));
}
inline System::Void DataSet1::gradeDataTable::AddgradeRow(ADONET::DataSet1::gradeRow * row) {
this->Rows->Add(row);
};
inline ADONET::DataSet1::gradeRow * DataSet1::gradeDataTable::AddgradeRow(System::String * Name, System::Single Math, System::Single Literary, System::Single Total) {
ADONET::DataSet1::gradeRow * rowgradeRow = (__try_cast<ADONET::DataSet1::gradeRow * >(this->NewRow()));
System::Object* __mcTemp__1[] = new System::Object*[4];
__mcTemp__1[0] = Name;
__mcTemp__1[1] = __box(Math);
__mcTemp__1[2] = __box(Literary);
__mcTemp__1[3] = __box(Total);
rowgradeRow->ItemArray = __mcTemp__1;
this->Rows->Add(rowgradeRow);
return rowgradeRow;
};
inline System::Collections::IEnumerator * DataSet1::gradeDataTable::GetEnumerator() {
return this->Rows->GetEnumerator();
};
inline System::Data::DataTable * DataSet1::gradeDataTable::Clone() {
ADONET::DataSet1::gradeDataTable * cln = (__try_cast<ADONET::DataSet1::gradeDataTable * >(__super::Clone()));
cln->InitVars();
return cln;
};
inline System::Data::DataTable * DataSet1::gradeDataTable::CreateInstance() {
return new ADONET::DataSet1::gradeDataTable();
};
inline System::Void DataSet1::gradeDataTable::InitVars() {
this->columnName = this->Columns->Item[S"Name"];
this->columnMath = this->Columns->Item[S"Math"];
this->columnLiterary = this->Columns->Item[S"Literary"];
this->columnTotal = this->Columns->Item[S"Total"];
};
inline System::Void DataSet1::gradeDataTable::InitClass() {
this->columnName = new System::Data::DataColumn(S"Name", __typeof(System::String), 0, System::Data::MappingType::Element);
this->Columns->Add(this->columnName);
this->columnMath = new System::Data::DataColumn(S"Math", __typeof(System::Single), 0, System::Data::MappingType::Element);
this->Columns->Add(this->columnMath);
this->columnLiterary = new System::Data::DataColumn(S"Literary", __typeof(System::Single), 0, System::Data::MappingType::Element);
this->Columns->Add(this->columnLiterary);
this->columnTotal = new System::Data::DataColumn(S"Total", __typeof(System::Single), 0, System::Data::MappingType::Element);
this->Columns->Add(this->columnTotal);
};
inline ADONET::DataSet1::gradeRow * DataSet1::gradeDataTable::NewgradeRow() {
return (__try_cast<ADONET::DataSet1::gradeRow * >(this->NewRow()));
};
inline System::Data::DataRow * DataSet1::gradeDataTable::NewRowFromBuilder(System::Data::DataRowBuilder * builder) {
return new ADONET::DataSet1::gradeRow(builder);
};
inline System::Type * DataSet1::gradeDataTable::GetRowType() {
return __typeof(ADONET::DataSet1::gradeRow);
};
inline System::Void DataSet1::gradeDataTable::OnRowChanged(System::Data::DataRowChangeEventArgs * e) {
__super::OnRowChanged(e);
if ((this->gradeRowChanged != 0)) {
this->gradeRowChanged(this, new ADONET::DataSet1::gradeRowChangeEvent((__try_cast<ADONET::DataSet1::gradeRow * >(e->Row)), e->Action));
}
};
inline System::Void DataSet1::gradeDataTable::OnRowChanging(System::Data::DataRowChangeEventArgs * e) {
__super::OnRowChanging(e);
if ((this->gradeRowChanging != 0)) {
this->gradeRowChanging(this, new ADONET::DataSet1::gradeRowChangeEvent((__try_cast<ADONET::DataSet1::gradeRow * >(e->Row)), e->Action));
}
};
inline System::Void DataSet1::gradeDataTable::OnRowDeleted(System::Data::DataRowChangeEventArgs * e) {
__super::OnRowDeleted(e);
if ((this->gradeRowDeleted != 0)) {
this->gradeRowDeleted(this, new ADONET::DataSet1::gradeRowChangeEvent((__try_cast<ADONET::DataSet1::gradeRow * >(e->Row)), e->Action));
}
};
inline System::Void DataSet1::gradeDataTable::OnRowDeleting(System::Data::DataRowChangeEventArgs * e) {
__super::OnRowDeleting(e);
if ((this->gradeRowDeleting != 0)) {
this->gradeRowDeleting(this, new ADONET::DataSet1::gradeRowChangeEvent((__try_cast<ADONET::DataSet1::gradeRow * >(e->Row)), e->Action));
}
};
inline System::Void DataSet1::gradeDataTable::RemovegradeRow(ADONET::DataSet1::gradeRow * row) {
this->Rows->Remove(row);
};
inline DataSet1::gradeRow::gradeRow(System::Data::DataRowBuilder * rb) :
DataRow(rb) {
this->tablegrade = (__try_cast<ADONET::DataSet1::gradeDataTable * >(this->Table));
}
inline System::String * DataSet1::gradeRow::get_Name() {
try {
return (__try_cast<System::String * >(this->Item[this->tablegrade->NameColumn]));
}
catch (System::InvalidCastException * e) {
throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
}
}
inline void DataSet1::gradeRow::set_Name(System::String * value) {
this->Item[this->tablegrade->NameColumn] = value;
}
inline System::Single DataSet1::gradeRow::get_Math() {
try {
return (*__try_cast<__box System::Single * >(this->Item[this->tablegrade->MathColumn]));
}
catch (System::InvalidCastException * e) {
throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
}
}
inline void DataSet1::gradeRow::set_Math(System::Single value) {
this->Item[this->tablegrade->MathColumn] = __box(value);
}
inline System::Single DataSet1::gradeRow::get_Literary() {
try {
return (*__try_cast<__box System::Single * >(this->Item[this->tablegrade->LiteraryColumn]));
}
catch (System::InvalidCastException * e) {
throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
}
}
inline void DataSet1::gradeRow::set_Literary(System::Single value) {
this->Item[this->tablegrade->LiteraryColumn] = __box(value);
}
inline System::Single DataSet1::gradeRow::get_Total() {
try {
return (*__try_cast<__box System::Single * >(this->Item[this->tablegrade->TotalColumn]));
}
catch (System::InvalidCastException * e) {
throw new System::Data::StrongTypingException(S"无法获取值,因为它是 DBNull。", e);
}
}
inline void DataSet1::gradeRow::set_Total(System::Single value) {
this->Item[this->tablegrade->TotalColumn] = __box(value);
}
inline System::Boolean DataSet1::gradeRow::IsNameNull() {
return this->IsNull(this->tablegrade->NameColumn);
};
inline System::Void DataSet1::gradeRow::SetNameNull() {
this->Item[this->tablegrade->NameColumn] = System::Convert::DBNull;
};
inline System::Boolean DataSet1::gradeRow::IsMathNull() {
return this->IsNull(this->tablegrade->MathColumn);
};
inline System::Void DataSet1::gradeRow::SetMathNull() {
this->Item[this->tablegrade->MathColumn] = System::Convert::DBNull;
};
inline System::Boolean DataSet1::gradeRow::IsLiteraryNull() {
return this->IsNull(this->tablegrade->LiteraryColumn);
};
inline System::Void DataSet1::gradeRow::SetLiteraryNull() {
this->Item[this->tablegrade->LiteraryColumn] = System::Convert::DBNull;
};
inline System::Boolean DataSet1::gradeRow::IsTotalNull() {
return this->IsNull(this->tablegrade->TotalColumn);
};
inline System::Void DataSet1::gradeRow::SetTotalNull() {
this->Item[this->tablegrade->TotalColumn] = System::Convert::DBNull;
};
inline DataSet1::gradeRowChangeEvent::gradeRowChangeEvent(ADONET::DataSet1::gradeRow * row, System::Data::DataRowAction action) {
this->eventRow = row;
this->eventAction = action;
}
inline ADONET::DataSet1::gradeRow * DataSet1::gradeRowChangeEvent::get_Row() {
return this->eventRow;
}
inline System::Data::DataRowAction DataSet1::gradeRowChangeEvent::get_Action() {
return this->eventAction;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -