📄 northwinddataset.designer.cs
字号:
this.columnFirstName = base.Columns["FirstName"];
this.columnTitle = base.Columns["Title"];
this.columnTitleOfCourtesy = base.Columns["TitleOfCourtesy"];
this.columnBirthDate = base.Columns["BirthDate"];
this.columnHireDate = base.Columns["HireDate"];
this.columnAddress = base.Columns["Address"];
this.columnCity = base.Columns["City"];
this.columnRegion = base.Columns["Region"];
this.columnPostalCode = base.Columns["PostalCode"];
this.columnCountry = base.Columns["Country"];
this.columnHomePhone = base.Columns["HomePhone"];
this.columnExtension = base.Columns["Extension"];
this.columnPhoto = base.Columns["Photo"];
this.columnNotes = base.Columns["Notes"];
this.columnReportsTo = base.Columns["ReportsTo"];
this.columnPhotoPath = base.Columns["PhotoPath"];
}
private void InitClass() {
this.columnEmployeeID = new System.Data.DataColumn("EmployeeID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnEmployeeID);
this.columnLastName = new System.Data.DataColumn("LastName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnLastName);
this.columnFirstName = new System.Data.DataColumn("FirstName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnFirstName);
this.columnTitle = new System.Data.DataColumn("Title", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnTitle);
this.columnTitleOfCourtesy = new System.Data.DataColumn("TitleOfCourtesy", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnTitleOfCourtesy);
this.columnBirthDate = new System.Data.DataColumn("BirthDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnBirthDate);
this.columnHireDate = new System.Data.DataColumn("HireDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnHireDate);
this.columnAddress = new System.Data.DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnAddress);
this.columnCity = new System.Data.DataColumn("City", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCity);
this.columnRegion = new System.Data.DataColumn("Region", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnRegion);
this.columnPostalCode = new System.Data.DataColumn("PostalCode", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPostalCode);
this.columnCountry = new System.Data.DataColumn("Country", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCountry);
this.columnHomePhone = new System.Data.DataColumn("HomePhone", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnHomePhone);
this.columnExtension = new System.Data.DataColumn("Extension", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnExtension);
this.columnPhoto = new System.Data.DataColumn("Photo", typeof(byte[]), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPhoto);
this.columnNotes = new System.Data.DataColumn("Notes", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnNotes);
this.columnReportsTo = new System.Data.DataColumn("ReportsTo", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnReportsTo);
this.columnPhotoPath = new System.Data.DataColumn("PhotoPath", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPhotoPath);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnEmployeeID}, true));
this.columnEmployeeID.AutoIncrement = true;
this.columnEmployeeID.AllowDBNull = false;
this.columnEmployeeID.ReadOnly = true;
this.columnEmployeeID.Unique = true;
this.columnLastName.AllowDBNull = false;
this.columnLastName.MaxLength = 20;
this.columnFirstName.AllowDBNull = false;
this.columnFirstName.MaxLength = 10;
this.columnTitle.MaxLength = 30;
this.columnTitleOfCourtesy.MaxLength = 25;
this.columnAddress.MaxLength = 60;
this.columnCity.MaxLength = 15;
this.columnRegion.MaxLength = 15;
this.columnPostalCode.MaxLength = 10;
this.columnCountry.MaxLength = 15;
this.columnHomePhone.MaxLength = 24;
this.columnExtension.MaxLength = 4;
this.columnNotes.MaxLength = 1073741823;
this.columnPhotoPath.MaxLength = 255;
}
public EmployeesRow NewEmployeesRow() {
return ((EmployeesRow)(this.NewRow()));
}
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new EmployeesRow(builder);
}
protected override System.Type GetRowType() {
return typeof(EmployeesRow);
}
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.EmployeesRowChanged != null)) {
this.EmployeesRowChanged(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.EmployeesRowChanging != null)) {
this.EmployeesRowChanging(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.EmployeesRowDeleted != null)) {
this.EmployeesRowDeleted(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.EmployeesRowDeleting != null)) {
this.EmployeesRowDeleting(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
}
}
public void RemoveEmployeesRow(EmployeesRow row) {
this.Rows.Remove(row);
}
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();
NorthwindDataSet ds = new NorthwindDataSet();
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 = "EmployeesDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
public partial class EmployeesRow : System.Data.DataRow {
private EmployeesDataTable tableEmployees;
internal EmployeesRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableEmployees = ((EmployeesDataTable)(this.Table));
}
public int EmployeeID {
get {
return ((int)(this[this.tableEmployees.EmployeeIDColumn]));
}
set {
this[this.tableEmployees.EmployeeIDColumn] = value;
}
}
public string LastName {
get {
return ((string)(this[this.tableEmployees.LastNameColumn]));
}
set {
this[this.tableEmployees.LastNameColumn] = value;
}
}
public string FirstName {
get {
return ((string)(this[this.tableEmployees.FirstNameColumn]));
}
set {
this[this.tableEmployees.FirstNameColumn] = value;
}
}
public string Title {
get {
try {
return ((string)(this[this.tableEmployees.TitleColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Title\' in table \'Employees\' is DBNull.", e);
}
}
set {
this[this.tableEmployees.TitleColumn] = value;
}
}
public string TitleOfCourtesy {
get {
try {
return ((string)(this[this.tableEmployees.TitleOfCourtesyColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'TitleOfCourtesy\' in table \'Employees\' is DBNull.", e);
}
}
set {
this[this.tableEmployees.TitleOfCourtesyColumn] = value;
}
}
public System.DateTime BirthDate {
get {
try {
return ((System.DateTime)(this[this.tableEmployees.BirthDateColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'BirthDate\' in table \'Employees\' is DBNull.", e);
}
}
set {
this[this.tableEmployees.BirthDateColumn] = value;
}
}
public System.DateTime HireDate {
get {
try {
return ((System.DateTime)(this[this.tableEmployees.HireDateColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'HireDate\' in table \'Employees\' is DBNull.", e);
}
}
set {
this[this.tableEmployees.HireDateColumn] = value;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -