📄 appdatabasedataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new OrdersDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnOrderId = base.Columns["OrderId"];
this.columnServerOrderId = base.Columns["ServerOrderId"];
this.columnProductId = base.Columns["ProductId"];
this.columnQuantity = base.Columns["Quantity"];
this.columnProductName = base.Columns["ProductName"];
this.columnPrice = base.Columns["Price"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnOrderId = new System.Data.DataColumn("OrderId", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnOrderId);
this.columnServerOrderId = new System.Data.DataColumn("ServerOrderId", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnServerOrderId);
this.columnProductId = new System.Data.DataColumn("ProductId", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnProductId);
this.columnQuantity = new System.Data.DataColumn("Quantity", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnQuantity);
this.columnProductName = new System.Data.DataColumn("ProductName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnProductName);
this.columnPrice = new System.Data.DataColumn("Price", typeof(decimal), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPrice);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnOrderId}, true));
this.columnOrderId.AutoIncrement = true;
this.columnOrderId.AllowDBNull = false;
this.columnOrderId.ReadOnly = true;
this.columnOrderId.Unique = true;
this.columnProductName.ReadOnly = true;
this.columnProductName.MaxLength = 100;
this.columnPrice.ReadOnly = true;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public OrdersRow NewOrdersRow() {
return ((OrdersRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new OrdersRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(OrdersRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.OrdersRowChanged != null)) {
this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.OrdersRowChanging != null)) {
this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.OrdersRowDeleted != null)) {
this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.OrdersRowDeleting != null)) {
this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveOrdersRow(OrdersRow row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
AppDatabaseDataSet ds = new AppDatabaseDataSet();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "OrdersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
public partial class ProductsRow : System.Data.DataRow {
private ProductsDataTable tableProducts;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ProductsRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableProducts = ((ProductsDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int ProductId {
get {
return ((int)(this[this.tableProducts.ProductIdColumn]));
}
set {
this[this.tableProducts.ProductIdColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string ProductName {
get {
return ((string)(this[this.tableProducts.ProductNameColumn]));
}
set {
this[this.tableProducts.ProductNameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal Price {
get {
return ((decimal)(this[this.tableProducts.PriceColumn]));
}
set {
this[this.tableProducts.PriceColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Description {
get {
try {
return ((string)(this[this.tableProducts.DescriptionColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Description\' in table \'Products\' is DBNull.", e);
}
}
set {
this[this.tableProducts.DescriptionColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsDescriptionNull() {
return this.IsNull(this.tableProducts.DescriptionColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetDescriptionNull() {
this[this.tableProducts.DescriptionColumn] = System.Convert.DBNull;
}
}
public partial class OrdersRow : System.Data.DataRow {
private OrdersDataTable tableOrders;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal OrdersRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableOrders = ((OrdersDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int OrderId {
get {
return ((int)(this[this.tableOrders.OrderIdColumn]));
}
set {
this[this.tableOrders.OrderIdColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int ServerOrderId {
get {
try {
return ((int)(this[this.tableOrders.ServerOrderIdColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'ServerOrderId\' in table \'Orders\' is DBNull.", e);
}
}
set {
this[this.tableOrders.ServerOrderIdColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int ProductId {
get {
try {
return ((int)(this[this.tableOrders.ProductIdColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'ProductId\' in table \'Orders\' is DBNull.", e);
}
}
set {
this[this.tableOrders.ProductIdColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Quantity {
get {
try {
return ((int)(this[this.tableOrders.QuantityColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Quantity\' in table \'Orders\' is DBNull.", e);
}
}
set {
this[this.tableOrders.QuantityColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string ProductName {
get {
try {
return ((string)(this[this.tableOrders.ProductNameColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'ProductName\' in table \'Orders\' is DBNull.", e);
}
}
set {
this[this.tableOrders.ProductNameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal Price {
get {
try {
return ((decimal)(this[this.tableOrders.PriceColumn]));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -