📄 employeedataset.designer.cs
字号:
public System.Data.DataColumn 姓名Column {
get {
return this.column姓名;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 性别Column {
get {
return this.column性别;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 年龄Column {
get {
return this.column年龄;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 部门Column {
get {
return this.column部门;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 职务Column {
get {
return this.column职务;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public employeeRow this[int index] {
get {
return ((employeeRow)(this.Rows[index]));
}
}
public event employeeRowChangeEventHandler employeeRowChanging;
public event employeeRowChangeEventHandler employeeRowChanged;
public event employeeRowChangeEventHandler employeeRowDeleting;
public event employeeRowChangeEventHandler employeeRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddemployeeRow(employeeRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public employeeRow AddemployeeRow(string 编号, string 姓名, string 性别, short 年龄, string 部门, string 职务) {
employeeRow rowemployeeRow = ((employeeRow)(this.NewRow()));
rowemployeeRow.ItemArray = new object[] {
编号,
姓名,
性别,
年龄,
部门,
职务};
this.Rows.Add(rowemployeeRow);
return rowemployeeRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public employeeRow FindBy编号(string 编号) {
return ((employeeRow)(this.Rows.Find(new object[] {
编号})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
employeeDataTable cln = ((employeeDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new employeeDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.column编号 = base.Columns["编号"];
this.column姓名 = base.Columns["姓名"];
this.column性别 = base.Columns["性别"];
this.column年龄 = base.Columns["年龄"];
this.column部门 = base.Columns["部门"];
this.column职务 = base.Columns["职务"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.column编号 = new System.Data.DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column编号);
this.column姓名 = new System.Data.DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column姓名);
this.column性别 = new System.Data.DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column性别);
this.column年龄 = new System.Data.DataColumn("年龄", typeof(short), null, System.Data.MappingType.Element);
base.Columns.Add(this.column年龄);
this.column部门 = new System.Data.DataColumn("部门", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column部门);
this.column职务 = new System.Data.DataColumn("职务", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column职务);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.column编号}, true));
this.column编号.AllowDBNull = false;
this.column编号.Unique = true;
this.column编号.MaxLength = 6;
this.column姓名.MaxLength = 10;
this.column性别.MaxLength = 1;
this.column部门.MaxLength = 50;
this.column职务.MaxLength = 50;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public employeeRow NewemployeeRow() {
return ((employeeRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new employeeRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(employeeRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.employeeRowChanged != null)) {
this.employeeRowChanged(this, new employeeRowChangeEvent(((employeeRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.employeeRowChanging != null)) {
this.employeeRowChanging(this, new employeeRowChangeEvent(((employeeRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.employeeRowDeleted != null)) {
this.employeeRowDeleted(this, new employeeRowChangeEvent(((employeeRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.employeeRowDeleting != null)) {
this.employeeRowDeleting(this, new employeeRowChangeEvent(((employeeRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveemployeeRow(employeeRow 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();
employeeDataSet ds = new employeeDataSet();
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 = "employeeDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class employeeRow : System.Data.DataRow {
private employeeDataTable tableemployee;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal employeeRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableemployee = ((employeeDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 编号 {
get {
return ((string)(this[this.tableemployee.编号Column]));
}
set {
this[this.tableemployee.编号Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 姓名 {
get {
try {
return ((string)(this[this.tableemployee.姓名Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“employee”中列“姓名”的值为 DBNull。", e);
}
}
set {
this[this.tableemployee.姓名Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 性别 {
get {
try {
return ((string)(this[this.tableemployee.性别Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“employee”中列“性别”的值为 DBNull。", e);
}
}
set {
this[this.tableemployee.性别Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public short 年龄 {
get {
try {
return ((short)(this[this.tableemployee.年龄Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“employee”中列“年龄”的值为 DBNull。", e);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -