📄 dataset1.h
字号:
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsSupplierIDNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetSupplierIDNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsCategoryIDNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetCategoryIDNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsQuantityPerUnitNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetQuantityPerUnitNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsUnitPriceNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetUnitPriceNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsUnitsInStockNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetUnitsInStockNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsUnitsOnOrderNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetUnitsOnOrderNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsReorderLevelNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetReorderLevelNull();
};
public : [System::CodeDom::Compiler::GeneratedCodeAttribute(L"System.Data.Design.TypedDataSetGenerator", L"2.0.0.0")]
ref class CustomersRowChangeEvent : public System::EventArgs {
private: Ex22_05::DataSet1::CustomersRow^ eventRow;
private: System::Data::DataRowAction eventAction;
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
CustomersRowChangeEvent(Ex22_05::DataSet1::CustomersRow^ row, System::Data::DataRowAction action);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property Ex22_05::DataSet1::CustomersRow^ Row {
Ex22_05::DataSet1::CustomersRow^ get();
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::Data::DataRowAction Action {
System::Data::DataRowAction get();
}
};
public : [System::CodeDom::Compiler::GeneratedCodeAttribute(L"System.Data.Design.TypedDataSetGenerator", L"2.0.0.0")]
ref class EmployeesRowChangeEvent : public System::EventArgs {
private: Ex22_05::DataSet1::EmployeesRow^ eventRow;
private: System::Data::DataRowAction eventAction;
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
EmployeesRowChangeEvent(Ex22_05::DataSet1::EmployeesRow^ row, System::Data::DataRowAction action);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property Ex22_05::DataSet1::EmployeesRow^ Row {
Ex22_05::DataSet1::EmployeesRow^ get();
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::Data::DataRowAction Action {
System::Data::DataRowAction get();
}
};
public : [System::CodeDom::Compiler::GeneratedCodeAttribute(L"System.Data.Design.TypedDataSetGenerator", L"2.0.0.0")]
ref class ProductsRowChangeEvent : public System::EventArgs {
private: Ex22_05::DataSet1::ProductsRow^ eventRow;
private: System::Data::DataRowAction eventAction;
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
ProductsRowChangeEvent(Ex22_05::DataSet1::ProductsRow^ row, System::Data::DataRowAction action);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property Ex22_05::DataSet1::ProductsRow^ Row {
Ex22_05::DataSet1::ProductsRow^ get();
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::Data::DataRowAction Action {
System::Data::DataRowAction get();
}
};
};
}
namespace Ex22_05 {
inline DataSet1::DataSet1() {
this->BeginInit();
this->InitClass();
System::ComponentModel::CollectionChangeEventHandler^ schemaChangedHandler = gcnew System::ComponentModel::CollectionChangeEventHandler(this, &Ex22_05::DataSet1::SchemaChanged);
__super::Tables->CollectionChanged += schemaChangedHandler;
__super::Relations->CollectionChanged += schemaChangedHandler;
this->EndInit();
}
inline DataSet1::DataSet1(System::Runtime::Serialization::SerializationInfo^ info, System::Runtime::Serialization::StreamingContext context) :
System::Data::DataSet(info, context, false) {
if (this->IsBinarySerialized(info, context) == true) {
this->InitVars(false);
System::ComponentModel::CollectionChangeEventHandler^ schemaChangedHandler1 = gcnew System::ComponentModel::CollectionChangeEventHandler(this, &Ex22_05::DataSet1::SchemaChanged);
this->Tables->CollectionChanged += schemaChangedHandler1;
this->Relations->CollectionChanged += schemaChangedHandler1;
return;
}
System::String^ strSchema = (cli::safe_cast<System::String^ >(info->GetValue(L"XmlSchema", System::String::typeid)));
if (this->DetermineSchemaSerializationMode(info, context) == System::Data::SchemaSerializationMode::IncludeSchema) {
System::Data::DataSet^ ds = (gcnew System::Data::DataSet());
ds->ReadXmlSchema((gcnew System::Xml::XmlTextReader((gcnew System::IO::StringReader(strSchema)))));
if (ds->Tables[L"Customers"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::CustomersDataTable(ds->Tables[L"Customers"])));
}
if (ds->Tables[L"Employees"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::EmployeesDataTable(ds->Tables[L"Employees"])));
}
if (ds->Tables[L"Products"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::ProductsDataTable(ds->Tables[L"Products"])));
}
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->ReadXmlSchema((gcnew System::Xml::XmlTextReader((gcnew System::IO::StringReader(strSchema)))));
}
this->GetSerializationData(info, context);
System::ComponentModel::CollectionChangeEventHandler^ schemaChangedHandler = gcnew System::ComponentModel::CollectionChangeEventHandler(this, &Ex22_05::DataSet1::SchemaChanged);
__super::Tables->CollectionChanged += schemaChangedHandler;
this->Relations->CollectionChanged += schemaChangedHandler;
}
inline Ex22_05::DataSet1::CustomersDataTable^ DataSet1::Customers::get() {
return this->tableCustomers;
}
inline Ex22_05::DataSet1::EmployeesDataTable^ DataSet1::Employees::get() {
return this->tableEmployees;
}
inline Ex22_05::DataSet1::ProductsDataTable^ DataSet1::Products::get() {
return this->tableProducts;
}
inline System::Data::SchemaSerializationMode DataSet1::SchemaSerializationMode::get() {
return this->_schemaSerializationMode;
}
inline System::Void DataSet1::SchemaSerializationMode::set(System::Data::SchemaSerializationMode value) {
this->_schemaSerializationMode = __identifier(value);
}
inline System::Data::DataTableCollection^ DataSet1::Tables::get() {
return __super::Tables;
}
inline System::Data::DataRelationCollection^ DataSet1::Relations::get() {
return __super::Relations;
}
inline System::Void DataSet1::InitializeDerivedDataSet() {
this->BeginInit();
this->InitClass();
this->EndInit();
}
inline System::Data::DataSet^ DataSet1::Clone() {
Ex22_05::DataSet1^ cln = (cli::safe_cast<Ex22_05::DataSet1^ >(__super::Clone()));
cln->InitVars();
cln->SchemaSerializationMode = this->SchemaSerializationMode;
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) {
if (this->DetermineSchemaSerializationMode(reader) == System::Data::SchemaSerializationMode::IncludeSchema) {
this->Reset();
System::Data::DataSet^ ds = (gcnew System::Data::DataSet());
ds->ReadXml(reader);
if (ds->Tables[L"Customers"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::CustomersDataTable(ds->Tables[L"Customers"])));
}
if (ds->Tables[L"Employees"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::EmployeesDataTable(ds->Tables[L"Employees"])));
}
if (ds->Tables[L"Products"] != nullptr) {
__super::Tables->Add((gcnew Ex22_05::DataSet1::ProductsDataTable(ds->Tables[L"Products"])));
}
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->ReadXml(reader);
this->InitVars();
}
}
inline System::Xml::Schema::XmlSchema^ DataSet1::GetSchemaSerializable() {
System::IO::MemoryStream^ stream = (gcnew System::IO::MemoryStream());
this->WriteXmlSchema((gcnew System::Xml::XmlTextWriter(stream, nullptr)));
stream->Position = 0;
return System::Xml::Schema::XmlSchema::Read((gcnew System::Xml::XmlTextReader(stream)), nullptr);
}
inline System::Void DataSet1::InitVars() {
this->InitVars(true);
}
inline System::Void DataSet1::InitVars(System::Boolean initTable) {
this->tableCustomers = (cli::safe_cast<Ex22_05::DataSet1::CustomersDataTable^ >(__super::Tables[L"Customers"]));
if (initTable == true) {
if (this->tableCustomers != nullptr) {
this->tableCustomers->InitVars();
}
}
this->tableEmployees = (cli::safe_cast<Ex22_05::DataSet1::EmployeesDataTable^ >(__super::Tables[L"Employees"]));
if (initTable == true) {
if (this->tableEmployees != nullptr) {
this->tableEmployees->InitVars();
}
}
this->tableProducts = (cli::safe_cast<Ex22_05::DataSet1::ProductsDataTable^ >(__super::Tables[L"Products"]));
if (initTable == true) {
if (this->tableProducts != nullptr) {
this->tableProducts->InitVars();
}
}
}
inline System::Void DataSet1::InitClass() {
this->DataSetName = L"DataSet1";
this->Prefix = L"";
this->Namespace = L"http://tempuri.org/DataSet1.xsd";
this->EnforceConstraints = true;
this->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
this->tableCustomers = (gcnew Ex22_05::DataSet1::CustomersDataTable());
__super::Tables->Add(this->tableCustomers);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -