📄 scoredataset.h
字号:
#pragma once
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>
//
// 此源代码由 xsd, Version=1.1.4322.573 自动生成。
//
namespace My {
using namespace System;
using namespace System::Data;
using namespace System::Xml;
using namespace System::Runtime::Serialization;
using namespace System;
public __gc class ScoreDataSet;
[Serializable,
System::ComponentModel::DesignerCategoryAttribute(S"code"),
System::Diagnostics::DebuggerStepThrough,
System::ComponentModel::ToolboxItem(true)]
public __gc class ScoreDataSet : public System::Data::DataSet {
public : __gc class MarkTableDataTable;
public : __gc class MarkTableRow;
public : __gc class MarkTableRowChangeEvent;
private: My::ScoreDataSet::MarkTableDataTable * tableMarkTable;
public: ScoreDataSet();
protected: ScoreDataSet(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 My::ScoreDataSet::MarkTableDataTable * get_MarkTable();
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 ShouldSerializeMarkTable();
private: System::Void SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e);
public: __delegate System::Void MarkTableRowChangeEventHandler(System::Object * sender, My::ScoreDataSet::MarkTableRowChangeEvent * e);
public : [System::Diagnostics::DebuggerStepThrough]
__gc class MarkTableDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
private: System::Data::DataColumn * columnStudentID;
private: System::Data::DataColumn * columnStudentName;
private: System::Data::DataColumn * columnCourseName;
private: System::Data::DataColumn * columnDepartment;
private: System::Data::DataColumn * columnTeacher;
private: System::Data::DataColumn * columnMark;
private: System::Data::DataColumn * columnExpr1;
private: System::Data::DataColumn * columnNumber;
private: System::Data::DataColumn * columnCourseID;
public private: MarkTableDataTable();
public private: MarkTableDataTable(System::Data::DataTable * table);
public: [property: System::ComponentModel::Browsable(false)]
__property System::Int32 get_Count();
public private: __property System::Data::DataColumn * get_StudentIDColumn();
public private: __property System::Data::DataColumn * get_StudentNameColumn();
public private: __property System::Data::DataColumn * get_CourseNameColumn();
public private: __property System::Data::DataColumn * get_DepartmentColumn();
public private: __property System::Data::DataColumn * get_TeacherColumn();
public private: __property System::Data::DataColumn * get_MarkColumn();
public private: __property System::Data::DataColumn * get_Expr1Column();
public private: __property System::Data::DataColumn * get_NumberColumn();
public private: __property System::Data::DataColumn * get_CourseIDColumn();
public: __property My::ScoreDataSet::MarkTableRow * get_Item(System::Int32 index);
public: __event My::ScoreDataSet::MarkTableRowChangeEventHandler * MarkTableRowChanged;
public: __event My::ScoreDataSet::MarkTableRowChangeEventHandler * MarkTableRowChanging;
public: __event My::ScoreDataSet::MarkTableRowChangeEventHandler * MarkTableRowDeleted;
public: __event My::ScoreDataSet::MarkTableRowChangeEventHandler * MarkTableRowDeleting;
public: System::Void AddMarkTableRow(My::ScoreDataSet::MarkTableRow * row);
public: My::ScoreDataSet::MarkTableRow * AddMarkTableRow(System::String * StudentID, System::String * StudentName, System::String * CourseName, System::String * Department, System::String * Teacher, System::Int32 Mark, System::String * Expr1, System::Int32 CourseID);
public: My::ScoreDataSet::MarkTableRow * FindByExpr1NumberCourseID(System::String * Expr1, System::Int32 Number, System::Int32 CourseID);
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: My::ScoreDataSet::MarkTableRow * NewMarkTableRow();
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 RemoveMarkTableRow(My::ScoreDataSet::MarkTableRow * row);
};
public : [System::Diagnostics::DebuggerStepThrough]
__gc class MarkTableRow : public System::Data::DataRow {
private: My::ScoreDataSet::MarkTableDataTable * tableMarkTable;
public private: MarkTableRow(System::Data::DataRowBuilder * rb);
public: __property System::String * get_StudentID();
public: __property void set_StudentID(System::String * value);
public: __property System::String * get_StudentName();
public: __property void set_StudentName(System::String * value);
public: __property System::String * get_CourseName();
public: __property void set_CourseName(System::String * value);
public: __property System::String * get_Department();
public: __property void set_Department(System::String * value);
public: __property System::String * get_Teacher();
public: __property void set_Teacher(System::String * value);
public: __property System::Int32 get_Mark();
public: __property void set_Mark(System::Int32 value);
public: __property System::String * get_Expr1();
public: __property void set_Expr1(System::String * value);
public: __property System::Int32 get_Number();
public: __property void set_Number(System::Int32 value);
public: __property System::Int32 get_CourseID();
public: __property void set_CourseID(System::Int32 value);
public: System::Boolean IsStudentNameNull();
public: System::Void SetStudentNameNull();
public: System::Boolean IsDepartmentNull();
public: System::Void SetDepartmentNull();
public: System::Boolean IsTeacherNull();
public: System::Void SetTeacherNull();
};
public : [System::Diagnostics::DebuggerStepThrough]
__gc class MarkTableRowChangeEvent : public System::EventArgs {
private: My::ScoreDataSet::MarkTableRow * eventRow;
private: System::Data::DataRowAction eventAction;
public: MarkTableRowChangeEvent(My::ScoreDataSet::MarkTableRow * row, System::Data::DataRowAction action);
public: __property My::ScoreDataSet::MarkTableRow * get_Row();
public: __property System::Data::DataRowAction get_Action();
};
};
inline ScoreDataSet::ScoreDataSet() {
this->InitClass();
System::ComponentModel::CollectionChangeEventHandler * schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
this->Tables->CollectionChanged += schemaChangedHandler;
this->Relations->CollectionChanged += schemaChangedHandler;
}
inline ScoreDataSet::ScoreDataSet(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"MarkTable"] != 0)) {
this->Tables->Add(new My::ScoreDataSet::MarkTableDataTable(ds->Tables->Item[S"MarkTable"]));
}
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::ScoreDataSet::MarkTableDataTable * ScoreDataSet::get_MarkTable() {
return this->tableMarkTable;
}
inline System::Data::DataSet * ScoreDataSet::Clone() {
My::ScoreDataSet * cln = (__try_cast<My::ScoreDataSet * >(__super::Clone()));
cln->InitVars();
return cln;
};
inline System::Boolean ScoreDataSet::ShouldSerializeTables() {
return false;
};
inline System::Boolean ScoreDataSet::ShouldSerializeRelations() {
return false;
};
inline System::Void ScoreDataSet::ReadXmlSerializable(System::Xml::XmlReader * reader) {
this->Reset();
System::Data::DataSet * ds = new System::Data::DataSet();
ds->ReadXml(reader);
if ((ds->Tables->Item[S"MarkTable"] != 0)) {
this->Tables->Add(new My::ScoreDataSet::MarkTableDataTable(ds->Tables->Item[S"MarkTable"]));
}
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 * ScoreDataSet::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 ScoreDataSet::InitVars() {
this->tableMarkTable = (__try_cast<My::ScoreDataSet::MarkTableDataTable * >(this->Tables->Item[S"MarkTable"]));
if ((this->tableMarkTable != 0)) {
this->tableMarkTable->InitVars();
}
};
inline System::Void ScoreDataSet::InitClass() {
this->DataSetName = S"ScoreDataSet";
this->Prefix = S"";
this->Namespace = S"http://www.tempuri.org/ScoreDataSet.xsd";
this->Locale = new System::Globalization::CultureInfo(S"zh-CN");
this->CaseSensitive = false;
this->EnforceConstraints = true;
this->tableMarkTable = new My::ScoreDataSet::MarkTableDataTable();
this->Tables->Add(this->tableMarkTable);
};
inline System::Boolean ScoreDataSet::ShouldSerializeMarkTable() {
return false;
};
inline System::Void ScoreDataSet::SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e) {
if ((e->Action == System::ComponentModel::CollectionChangeAction::Remove)) {
this->InitVars();
}
};
inline ScoreDataSet::MarkTableDataTable::MarkTableDataTable() :
DataTable(S"MarkTable") {
this->InitClass();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -