📄 customers.h
字号:
inline System::Void Customers::CustomersDataTable::OnRowDeleted(System::Data::DataRowChangeEventArgs^ e) {
__super::OnRowDeleted(e);
{
this->CustomersRowDeleted(this, (gcnew Ex22_03::Customers::CustomersRowChangeEvent((cli::safe_cast<Ex22_03::Customers::CustomersRow^ >(e->Row)),
e->Action)));
}
}
inline System::Void Customers::CustomersDataTable::OnRowDeleting(System::Data::DataRowChangeEventArgs^ e) {
__super::OnRowDeleting(e);
{
this->CustomersRowDeleting(this, (gcnew Ex22_03::Customers::CustomersRowChangeEvent((cli::safe_cast<Ex22_03::Customers::CustomersRow^ >(e->Row)),
e->Action)));
}
}
inline System::Void Customers::CustomersDataTable::RemoveCustomersRow(Ex22_03::Customers::CustomersRow^ row) {
this->Rows->Remove(row);
}
inline System::Xml::Schema::XmlSchemaComplexType^ Customers::CustomersDataTable::GetTypedTableSchema(System::Xml::Schema::XmlSchemaSet^ xs) {
System::Xml::Schema::XmlSchemaComplexType^ type = (gcnew System::Xml::Schema::XmlSchemaComplexType());
System::Xml::Schema::XmlSchemaSequence^ sequence = (gcnew System::Xml::Schema::XmlSchemaSequence());
Ex22_03::Customers^ ds = (gcnew Ex22_03::Customers());
xs->Add(ds->GetSchemaSerializable());
System::Xml::Schema::XmlSchemaAny^ any1 = (gcnew System::Xml::Schema::XmlSchemaAny());
any1->Namespace = L"http://www.w3.org/2001/XMLSchema";
any1->MinOccurs = System::Decimal(0);
any1->MaxOccurs = System::Decimal::MaxValue;
any1->ProcessContents = System::Xml::Schema::XmlSchemaContentProcessing::Lax;
sequence->Items->Add(any1);
System::Xml::Schema::XmlSchemaAny^ any2 = (gcnew System::Xml::Schema::XmlSchemaAny());
any2->Namespace = L"urn:schemas-microsoft-com:xml-diffgram-v1";
any2->MinOccurs = System::Decimal(1);
any2->ProcessContents = System::Xml::Schema::XmlSchemaContentProcessing::Lax;
sequence->Items->Add(any2);
System::Xml::Schema::XmlSchemaAttribute^ attribute1 = (gcnew System::Xml::Schema::XmlSchemaAttribute());
attribute1->Name = L"namespace";
attribute1->FixedValue = ds->Namespace;
type->Attributes->Add(attribute1);
System::Xml::Schema::XmlSchemaAttribute^ attribute2 = (gcnew System::Xml::Schema::XmlSchemaAttribute());
attribute2->Name = L"tableTypeName";
attribute2->FixedValue = L"CustomersDataTable";
type->Attributes->Add(attribute2);
type->Particle = sequence;
return type;
}
inline Customers::CustomersRow::CustomersRow(System::Data::DataRowBuilder^ rb) :
System::Data::DataRow(rb) {
this->tableCustomers = (cli::safe_cast<Ex22_03::Customers::CustomersDataTable^ >(this->Table));
}
inline System::String^ Customers::CustomersRow::CustomerID::get() {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->CustomerIDColumn]));
}
inline System::Void Customers::CustomersRow::CustomerID::set(System::String^ value) {
this[this->tableCustomers->CustomerIDColumn] = value;
}
inline System::String^ Customers::CustomersRow::CompanyName::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->CompanyNameColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'CompanyName\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::CompanyName::set(System::String^ value) {
this[this->tableCustomers->CompanyNameColumn] = value;
}
inline System::String^ Customers::CustomersRow::ContactName::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->ContactNameColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'ContactName\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::ContactName::set(System::String^ value) {
this[this->tableCustomers->ContactNameColumn] = value;
}
inline System::String^ Customers::CustomersRow::ContactTitle::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->ContactTitleColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'ContactTitle\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::ContactTitle::set(System::String^ value) {
this[this->tableCustomers->ContactTitleColumn] = value;
}
inline System::String^ Customers::CustomersRow::Address::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->AddressColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'Address\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::Address::set(System::String^ value) {
this[this->tableCustomers->AddressColumn] = value;
}
inline System::String^ Customers::CustomersRow::City::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->CityColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'City\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::City::set(System::String^ value) {
this[this->tableCustomers->CityColumn] = value;
}
inline System::String^ Customers::CustomersRow::Region::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->RegionColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'Region\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::Region::set(System::String^ value) {
this[this->tableCustomers->RegionColumn] = value;
}
inline System::String^ Customers::CustomersRow::PostalCode::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->PostalCodeColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'PostalCode\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::PostalCode::set(System::String^ value) {
this[this->tableCustomers->PostalCodeColumn] = value;
}
inline System::String^ Customers::CustomersRow::Country::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->CountryColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'Country\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::Country::set(System::String^ value) {
this[this->tableCustomers->CountryColumn] = value;
}
inline System::String^ Customers::CustomersRow::Phone::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->PhoneColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'Phone\' in table \'Customers\' is DBNull.",
e));
}
}
inline System::Void Customers::CustomersRow::Phone::set(System::String^ value) {
this[this->tableCustomers->PhoneColumn] = value;
}
inline System::String^ Customers::CustomersRow::Fax::get() {
try {
return (cli::safe_cast<System::String^ >(this[this->tableCustomers->FaxColumn]));
}
catch (System::InvalidCastException^ e) {
throw (gcnew System::Data::StrongTypingException(L"The value for column \'Fax\' in table \'Customers\' is DBNull.", e));
}
}
inline System::Void Customers::CustomersRow::Fax::set(System::String^ value) {
this[this->tableCustomers->FaxColumn] = value;
}
inline System::Boolean Customers::CustomersRow::IsCompanyNameNull() {
return this->IsNull(this->tableCustomers->CompanyNameColumn);
}
inline System::Void Customers::CustomersRow::SetCompanyNameNull() {
this[this->tableCustomers->CompanyNameColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsContactNameNull() {
return this->IsNull(this->tableCustomers->ContactNameColumn);
}
inline System::Void Customers::CustomersRow::SetContactNameNull() {
this[this->tableCustomers->ContactNameColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsContactTitleNull() {
return this->IsNull(this->tableCustomers->ContactTitleColumn);
}
inline System::Void Customers::CustomersRow::SetContactTitleNull() {
this[this->tableCustomers->ContactTitleColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsAddressNull() {
return this->IsNull(this->tableCustomers->AddressColumn);
}
inline System::Void Customers::CustomersRow::SetAddressNull() {
this[this->tableCustomers->AddressColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsCityNull() {
return this->IsNull(this->tableCustomers->CityColumn);
}
inline System::Void Customers::CustomersRow::SetCityNull() {
this[this->tableCustomers->CityColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsRegionNull() {
return this->IsNull(this->tableCustomers->RegionColumn);
}
inline System::Void Customers::CustomersRow::SetRegionNull() {
this[this->tableCustomers->RegionColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsPostalCodeNull() {
return this->IsNull(this->tableCustomers->PostalCodeColumn);
}
inline System::Void Customers::CustomersRow::SetPostalCodeNull() {
this[this->tableCustomers->PostalCodeColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsCountryNull() {
return this->IsNull(this->tableCustomers->CountryColumn);
}
inline System::Void Customers::CustomersRow::SetCountryNull() {
this[this->tableCustomers->CountryColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsPhoneNull() {
return this->IsNull(this->tableCustomers->PhoneColumn);
}
inline System::Void Customers::CustomersRow::SetPhoneNull() {
this[this->tableCustomers->PhoneColumn] = System::Convert::DBNull;
}
inline System::Boolean Customers::CustomersRow::IsFaxNull() {
return this->IsNull(this->tableCustomers->FaxColumn);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -