📄 dataset1.h
字号:
#pragma once
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>
//
// 此源代码由 xsd, Version=1.1.4322.573 自动生成。
//
namespace db {
using namespace System;
using namespace System::Data;
using namespace System::Xml;
using namespace System::Runtime::Serialization;
using namespace System;
public __gc class DataSet1;
[Serializable,
System::ComponentModel::DesignerCategoryAttribute(S"code"),
System::Diagnostics::DebuggerStepThrough,
System::ComponentModel::ToolboxItem(true)]
public __gc class DataSet1 : public System::Data::DataSet {
public : __gc class gradeDataTable;
public : __gc class gradeRow;
public : __gc class gradeRowChangeEvent;
private: db::DataSet1::gradeDataTable * tablegrade;
public: DataSet1();
protected: DataSet1(System::Runtime::Serialization::SerializationInfo * info, System::Runtime::Serialization::StreamingContext context);
public: [property: System::ComponentModel::Browsable(false),
property: System::ComponentModel::DesignerSerializationVisibilityAttribute(System::ComponentModel::DesignerSerializationVisibility::Content)]
__property db::DataSet1::gradeDataTable * get_grade();
public: virtual System::Data::DataSet * Clone();
protected: virtual System::Boolean ShouldSerializeTables();
protected: virtual System::Boolean ShouldSerializeRelations();
protected: virtual System::Void ReadXmlSerializable(System::Xml::XmlReader * reader);
protected: virtual System::Xml::Schema::XmlSchema * GetSchemaSerializable();
public private: System::Void InitVars();
private: System::Void InitClass();
private: System::Boolean ShouldSerializegrade();
private: System::Void SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e);
public: __delegate System::Void gradeRowChangeEventHandler(System::Object * sender, db::DataSet1::gradeRowChangeEvent * e);
public : [System::Diagnostics::DebuggerStepThrough]
__gc class gradeDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
private: System::Data::DataColumn * columnName;
private: System::Data::DataColumn * columnMath;
private: System::Data::DataColumn * columnLiterary;
private: System::Data::DataColumn * columnTotal;
private: System::Data::DataColumn * columnExpr1004;
public private: gradeDataTable();
public private: gradeDataTable(System::Data::DataTable * table);
public: [property: System::ComponentModel::Browsable(false)]
__property System::Int32 get_Count();
public private: __property System::Data::DataColumn * get_NameColumn();
public private: __property System::Data::DataColumn * get_MathColumn();
public private: __property System::Data::DataColumn * get_LiteraryColumn();
public private: __property System::Data::DataColumn * get_TotalColumn();
public private: __property System::Data::DataColumn * get_Expr1004Column();
public: __property db::DataSet1::gradeRow * get_Item(System::Int32 index);
public: __event db::DataSet1::gradeRowChangeEventHandler * gradeRowChanged;
public: __event db::DataSet1::gradeRowChangeEventHandler * gradeRowChanging;
public: __event db::DataSet1::gradeRowChangeEventHandler * gradeRowDeleted;
public: __event db::DataSet1::gradeRowChangeEventHandler * gradeRowDeleting;
public: System::Void AddgradeRow(db::DataSet1::gradeRow * row);
public: db::DataSet1::gradeRow * AddgradeRow(System::String * Name, System::Single Math, System::Single Literary, System::Single Total, System::Int16 Expr1004);
public: System::Collections::IEnumerator * GetEnumerator();
public: virtual System::Data::DataTable * Clone();
protected: virtual System::Data::DataTable * CreateInstance();
public private: System::Void InitVars();
private: System::Void InitClass();
public: db::DataSet1::gradeRow * NewgradeRow();
protected: virtual System::Data::DataRow * NewRowFromBuilder(System::Data::DataRowBuilder * builder);
protected: virtual System::Type * GetRowType();
protected: virtual System::Void OnRowChanged(System::Data::DataRowChangeEventArgs * e);
protected: virtual System::Void OnRowChanging(System::Data::DataRowChangeEventArgs * e);
protected: virtual System::Void OnRowDeleted(System::Data::DataRowChangeEventArgs * e);
protected: virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs * e);
public: System::Void RemovegradeRow(db::DataSet1::gradeRow * row);
};
public : [System::Diagnostics::DebuggerStepThrough]
__gc class gradeRow : public System::Data::DataRow {
private: db::DataSet1::gradeDataTable * tablegrade;
public private: gradeRow(System::Data::DataRowBuilder * rb);
public: __property System::String * get_Name();
public: __property void set_Name(System::String * value);
public: __property System::Single get_Math();
public: __property void set_Math(System::Single value);
public: __property System::Single get_Literary();
public: __property void set_Literary(System::Single value);
public: __property System::Single get_Total();
public: __property void set_Total(System::Single value);
public: __property System::Int16 get_Expr1004();
public: __property void set_Expr1004(System::Int16 value);
public: System::Boolean IsNameNull();
public: System::Void SetNameNull();
public: System::Boolean IsMathNull();
public: System::Void SetMathNull();
public: System::Boolean IsLiteraryNull();
public: System::Void SetLiteraryNull();
public: System::Boolean IsTotalNull();
public: System::Void SetTotalNull();
public: System::Boolean IsExpr1004Null();
public: System::Void SetExpr1004Null();
};
public : [System::Diagnostics::DebuggerStepThrough]
__gc class gradeRowChangeEvent : public System::EventArgs {
private: db::DataSet1::gradeRow * eventRow;
private: System::Data::DataRowAction eventAction;
public: gradeRowChangeEvent(db::DataSet1::gradeRow * row, System::Data::DataRowAction action);
public: __property db::DataSet1::gradeRow * get_Row();
public: __property System::Data::DataRowAction get_Action();
};
};
inline DataSet1::DataSet1() {
this->InitClass();
System::ComponentModel::CollectionChangeEventHandler * schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
this->Tables->CollectionChanged += schemaChangedHandler;
this->Relations->CollectionChanged += schemaChangedHandler;
}
inline DataSet1::DataSet1(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"grade"] != 0)) {
this->Tables->Add(new db::DataSet1::gradeDataTable(ds->Tables->Item[S"grade"]));
}
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 db::DataSet1::gradeDataTable * DataSet1::get_grade() {
return this->tablegrade;
}
inline System::Data::DataSet * DataSet1::Clone() {
db::DataSet1 * cln = (__try_cast<db::DataSet1 * >(__super::Clone()));
cln->InitVars();
return cln;
};
inline System::Boolean DataSet1::ShouldSerializeTables() {
return false;
};
inline System::Boolean DataSet1::ShouldSerializeRelations() {
return false;
};
inline System::Void DataSet1::ReadXmlSerializable(System::Xml::XmlReader * reader) {
this->Reset();
System::Data::DataSet * ds = new System::Data::DataSet();
ds->ReadXml(reader);
if ((ds->Tables->Item[S"grade"] != 0)) {
this->Tables->Add(new db::DataSet1::gradeDataTable(ds->Tables->Item[S"grade"]));
}
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 * DataSet1::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 DataSet1::InitVars() {
this->tablegrade = (__try_cast<db::DataSet1::gradeDataTable * >(this->Tables->Item[S"grade"]));
if ((this->tablegrade != 0)) {
this->tablegrade->InitVars();
}
};
inline System::Void DataSet1::InitClass() {
this->DataSetName = S"DataSet1";
this->Prefix = S"";
this->Namespace = S"http://www.tempuri.org/DataSet1.xsd";
this->Locale = new System::Globalization::CultureInfo(S"zh-CN");
this->CaseSensitive = false;
this->EnforceConstraints = true;
this->tablegrade = new db::DataSet1::gradeDataTable();
this->Tables->Add(this->tablegrade);
};
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();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -