📄 customers.h
字号:
protected: [System::Diagnostics::DebuggerNonUserCodeAttribute]
virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs^ e) override;
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void RemoveCustomersRow(Ex22_03::Customers::CustomersRow^ row);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
static System::Xml::Schema::XmlSchemaComplexType^ GetTypedTableSchema(System::Xml::Schema::XmlSchemaSet^ xs);
};
public : [System::CodeDom::Compiler::GeneratedCodeAttribute(L"System.Data.Design.TypedDataSetGenerator", L"2.0.0.0")]
ref class CustomersRow : public System::Data::DataRow {
private: Ex22_03::Customers::CustomersDataTable^ tableCustomers;
internal: [System::Diagnostics::DebuggerNonUserCodeAttribute]
CustomersRow(System::Data::DataRowBuilder^ rb);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ CustomerID {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ CompanyName {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ ContactName {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ ContactTitle {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ Address {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ City {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ Region {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ PostalCode {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ Country {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ Phone {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::String^ Fax {
System::String^ get();
System::Void set(System::String^ value);
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsCompanyNameNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetCompanyNameNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsContactNameNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetContactNameNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsContactTitleNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetContactTitleNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsAddressNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetAddressNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsCityNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetCityNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsRegionNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetRegionNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsPostalCodeNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetPostalCodeNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsCountryNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetCountryNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsPhoneNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetPhoneNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Boolean IsFaxNull();
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
System::Void SetFaxNull();
};
public : [System::CodeDom::Compiler::GeneratedCodeAttribute(L"System.Data.Design.TypedDataSetGenerator", L"2.0.0.0")]
ref class CustomersRowChangeEvent : public System::EventArgs {
private: Ex22_03::Customers::CustomersRow^ eventRow;
private: System::Data::DataRowAction eventAction;
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
CustomersRowChangeEvent(Ex22_03::Customers::CustomersRow^ row, System::Data::DataRowAction action);
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property Ex22_03::Customers::CustomersRow^ Row {
Ex22_03::Customers::CustomersRow^ get();
}
public: [System::Diagnostics::DebuggerNonUserCodeAttribute]
property System::Data::DataRowAction Action {
System::Data::DataRowAction get();
}
};
};
}
namespace Ex22_03 {
inline Customers::Customers() {
this->BeginInit();
this->InitClass();
System::ComponentModel::CollectionChangeEventHandler^ schemaChangedHandler = gcnew System::ComponentModel::CollectionChangeEventHandler(this, &Ex22_03::Customers::SchemaChanged);
__super::Tables->CollectionChanged += schemaChangedHandler;
__super::Relations->CollectionChanged += schemaChangedHandler;
this->EndInit();
}
inline Customers::Customers(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_03::Customers::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_03::Customers::CustomersDataTable(ds->Tables[L"Customers"])));
}
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_03::Customers::SchemaChanged);
__super::Tables->CollectionChanged += schemaChangedHandler;
this->Relations->CollectionChanged += schemaChangedHandler;
}
inline Ex22_03::Customers::CustomersDataTable^ Customers::_Customers::get() {
return this->tableCustomers;
}
inline System::Data::SchemaSerializationMode Customers::SchemaSerializationMode::get() {
return this->_schemaSerializationMode;
}
inline System::Void Customers::SchemaSerializationMode::set(System::Data::SchemaSerializationMode value) {
this->_schemaSerializationMode = __identifier(value);
}
inline System::Data::DataTableCollection^ Customers::Tables::get() {
return __super::Tables;
}
inline System::Data::DataRelationCollection^ Customers::Relations::get() {
return __super::Relations;
}
inline System::Void Customers::InitializeDerivedDataSet() {
this->BeginInit();
this->InitClass();
this->EndInit();
}
inline System::Data::DataSet^ Customers::Clone() {
Ex22_03::Customers^ cln = (cli::safe_cast<Ex22_03::Customers^ >(__super::Clone()));
cln->InitVars();
cln->SchemaSerializationMode = this->SchemaSerializationMode;
return cln;
}
inline System::Boolean Customers::ShouldSerializeTables() {
return false;
}
inline System::Boolean Customers::ShouldSerializeRelations() {
return false;
}
inline System::Void Customers::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_03::Customers::CustomersDataTable(ds->Tables[L"Customers"])));
}
this->DataSetName = ds->DataSetName;
this->Prefix = ds->Prefix;
this->Namespace = ds->Namespace;
this->Locale = ds->Locale;
this->CaseSensitive = ds->CaseSensitive;
this->EnforceConstraints = ds->EnforceConstraints;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -