📄 northwinddataset.designer.cs
字号:
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CategoriesRow AddCategoriesRow(string Category_Name, string Description, byte[] Picture) {
CategoriesRow rowCategoriesRow = ((CategoriesRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
Category_Name,
Description,
Picture};
rowCategoriesRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCategoriesRow);
return rowCategoriesRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CategoriesRow FindByCategory_ID(int Category_ID) {
return ((CategoriesRow)(this.Rows.Find(new object[] {
Category_ID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
CategoriesDataTable cln = ((CategoriesDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new CategoriesDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnCategory_ID = base.Columns["Category ID"];
this.columnCategory_Name = base.Columns["Category Name"];
this.columnDescription = base.Columns["Description"];
this.columnPicture = base.Columns["Picture"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnCategory_ID = new global::System.Data.DataColumn("Category ID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCategory_ID);
this.columnCategory_Name = new global::System.Data.DataColumn("Category Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCategory_Name);
this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescription);
this.columnPicture = new global::System.Data.DataColumn("Picture", typeof(byte[]), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnPicture);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCategory_Name}, false));
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] {
this.columnCategory_ID}, true));
this.columnCategory_ID.AutoIncrement = true;
this.columnCategory_ID.AutoIncrementSeed = -1;
this.columnCategory_ID.AutoIncrementStep = -1;
this.columnCategory_ID.AllowDBNull = false;
this.columnCategory_ID.ReadOnly = true;
this.columnCategory_ID.Unique = true;
this.columnCategory_Name.AllowDBNull = false;
this.columnCategory_Name.Unique = true;
this.columnCategory_Name.MaxLength = 15;
this.columnDescription.MaxLength = 536870911;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CategoriesRow NewCategoriesRow() {
return ((CategoriesRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new CategoriesRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(CategoriesRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CategoriesRowChanged != null)) {
this.CategoriesRowChanged(this, new CategoriesRowChangeEvent(((CategoriesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CategoriesRowChanging != null)) {
this.CategoriesRowChanging(this, new CategoriesRowChangeEvent(((CategoriesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CategoriesRowDeleted != null)) {
this.CategoriesRowDeleted(this, new CategoriesRowChangeEvent(((CategoriesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CategoriesRowDeleting != null)) {
this.CategoriesRowDeleting(this, new CategoriesRowChangeEvent(((CategoriesRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveCategoriesRow(CategoriesRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
NorthwindDataSet ds = new NorthwindDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CategoriesDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CustomersDataTable : global::System.Data.TypedTableBase<CustomersRow> {
private global::System.Data.DataColumn columnCustomer_ID;
private global::System.Data.DataColumn columnCompany_Name;
private global::System.Data.DataColumn columnContact_Name;
private global::System.Data.DataColumn columnContact_Title;
private global::System.Data.DataColumn columnAddress;
private global::System.Data.DataColumn columnCity;
private global::System.Data.DataColumn columnRegion;
private global::System.Data.DataColumn columnPostal_Code;
private global::System.Data.DataColumn columnCountry;
private global::System.Data.DataColumn columnPhone;
private global::System.Data.DataColumn columnFax;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersDataTable() {
this.TableName = "Customers";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal CustomersDataTable(global::System.Data.DataTable table) {
this.TableName = 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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Customer_IDColumn {
get {
return this.columnCustomer_ID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Company_NameColumn {
get {
return this.columnCompany_Name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Contact_NameColumn {
get {
return this.columnContact_Name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Contact_TitleColumn {
get {
return this.columnContact_Title;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn AddressColumn {
get {
return this.columnAddress;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn CityColumn {
get {
return this.columnCity;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -