📄 dssuppliers.cs
字号:
set {
this[this.tableProducts.CompanyNameColumn] = value;
}
}
public SuppliersRow SuppliersRow {
get {
return ((SuppliersRow)(this.GetParentRow(this.Table.ParentRelations["SuppliersProducts"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["SuppliersProducts"]);
}
}
public bool IsSupplierIDNull() {
return this.IsNull(this.tableProducts.SupplierIDColumn);
}
public void SetSupplierIDNull() {
this[this.tableProducts.SupplierIDColumn] = System.Convert.DBNull;
}
public bool IsCategoryIDNull() {
return this.IsNull(this.tableProducts.CategoryIDColumn);
}
public void SetCategoryIDNull() {
this[this.tableProducts.CategoryIDColumn] = System.Convert.DBNull;
}
public bool IsQuantityPerUnitNull() {
return this.IsNull(this.tableProducts.QuantityPerUnitColumn);
}
public void SetQuantityPerUnitNull() {
this[this.tableProducts.QuantityPerUnitColumn] = System.Convert.DBNull;
}
public bool IsUnitPriceNull() {
return this.IsNull(this.tableProducts.UnitPriceColumn);
}
public void SetUnitPriceNull() {
this[this.tableProducts.UnitPriceColumn] = System.Convert.DBNull;
}
public bool IsUnitsInStockNull() {
return this.IsNull(this.tableProducts.UnitsInStockColumn);
}
public void SetUnitsInStockNull() {
this[this.tableProducts.UnitsInStockColumn] = System.Convert.DBNull;
}
public bool IsUnitsOnOrderNull() {
return this.IsNull(this.tableProducts.UnitsOnOrderColumn);
}
public void SetUnitsOnOrderNull() {
this[this.tableProducts.UnitsOnOrderColumn] = System.Convert.DBNull;
}
public bool IsReorderLevelNull() {
return this.IsNull(this.tableProducts.ReorderLevelColumn);
}
public void SetReorderLevelNull() {
this[this.tableProducts.ReorderLevelColumn] = System.Convert.DBNull;
}
public bool IsDiscontinuedNull() {
return this.IsNull(this.tableProducts.DiscontinuedColumn);
}
public void SetDiscontinuedNull() {
this[this.tableProducts.DiscontinuedColumn] = System.Convert.DBNull;
}
public bool IsCompanyNameNull() {
return this.IsNull(this.tableProducts.CompanyNameColumn);
}
public void SetCompanyNameNull() {
this[this.tableProducts.CompanyNameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class ProductsRowChangeEvent : EventArgs {
private ProductsRow eventRow;
private DataRowAction eventAction;
public ProductsRowChangeEvent(ProductsRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public ProductsRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SuppliersDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnSupplierID;
private DataColumn columnCompanyName;
private DataColumn columnContactName;
private DataColumn columnContactTitle;
private DataColumn columnAddress;
private DataColumn columnCity;
private DataColumn columnPostalCode;
private DataColumn columnCountry;
private DataColumn columnPhone;
private DataColumn columnFax;
internal SuppliersDataTable() :
base("Suppliers") {
this.InitClass();
}
internal SuppliersDataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn SupplierIDColumn {
get {
return this.columnSupplierID;
}
}
internal DataColumn CompanyNameColumn {
get {
return this.columnCompanyName;
}
}
internal DataColumn ContactNameColumn {
get {
return this.columnContactName;
}
}
internal DataColumn ContactTitleColumn {
get {
return this.columnContactTitle;
}
}
internal DataColumn AddressColumn {
get {
return this.columnAddress;
}
}
internal DataColumn CityColumn {
get {
return this.columnCity;
}
}
internal DataColumn PostalCodeColumn {
get {
return this.columnPostalCode;
}
}
internal DataColumn CountryColumn {
get {
return this.columnCountry;
}
}
internal DataColumn PhoneColumn {
get {
return this.columnPhone;
}
}
internal DataColumn FaxColumn {
get {
return this.columnFax;
}
}
public SuppliersRow this[int index] {
get {
return ((SuppliersRow)(this.Rows[index]));
}
}
public event SuppliersRowChangeEventHandler SuppliersRowChanged;
public event SuppliersRowChangeEventHandler SuppliersRowChanging;
public event SuppliersRowChangeEventHandler SuppliersRowDeleted;
public event SuppliersRowChangeEventHandler SuppliersRowDeleting;
public void AddSuppliersRow(SuppliersRow row) {
this.Rows.Add(row);
}
public SuppliersRow AddSuppliersRow(string CompanyName, string ContactName, string ContactTitle, string Address, string City, string PostalCode, string Country, string Phone, string Fax) {
SuppliersRow rowSuppliersRow = ((SuppliersRow)(this.NewRow()));
rowSuppliersRow.ItemArray = new object[] {
null,
CompanyName,
ContactName,
ContactTitle,
Address,
City,
PostalCode,
Country,
Phone,
Fax};
this.Rows.Add(rowSuppliersRow);
return rowSuppliersRow;
}
public SuppliersRow FindBySupplierID(int SupplierID) {
return ((SuppliersRow)(this.Rows.Find(new object[] {
SupplierID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
SuppliersDataTable cln = ((SuppliersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new SuppliersDataTable();
}
internal void InitVars() {
this.columnSupplierID = this.Columns["SupplierID"];
this.columnCompanyName = this.Columns["CompanyName"];
this.columnContactName = this.Columns["ContactName"];
this.columnContactTitle = this.Columns["ContactTitle"];
this.columnAddress = this.Columns["Address"];
this.columnCity = this.Columns["City"];
this.columnPostalCode = this.Columns["PostalCode"];
this.columnCountry = this.Columns["Country"];
this.columnPhone = this.Columns["Phone"];
this.columnFax = this.Columns["Fax"];
}
private void InitClass() {
this.columnSupplierID = new DataColumn("SupplierID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnSupplierID);
this.columnCompanyName = new DataColumn("CompanyName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnCompanyName);
this.columnContactName = new DataColumn("ContactName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnContactName);
this.columnContactTitle = new DataColumn("ContactTitle", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnContactTitle);
this.columnAddress = new DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAddress);
this.columnCity = new DataColumn("City", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnCity);
this.columnPostalCode = new DataColumn("PostalCode", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPostalCode);
this.columnCountry = new DataColumn("Country", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnCountry);
this.columnPhone = new DataColumn("Phone", typeof(string), null, System.Data.MappingType.Element);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -