📄 pubsdataset2.designer.cs
字号:
get {
return this.columnuid;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn pidColumn {
get {
return this.columnpid;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn unameColumn {
get {
return this.columnuname;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ageColumn {
get {
return this.columnage;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn companyColumn {
get {
return this.columncompany;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn islockedColumn {
get {
return this.columnislocked;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public usersRow this[int index] {
get {
return ((usersRow)(this.Rows[index]));
}
}
public event usersRowChangeEventHandler usersRowChanging;
public event usersRowChangeEventHandler usersRowChanged;
public event usersRowChangeEventHandler usersRowDeleting;
public event usersRowChangeEventHandler usersRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddusersRow(usersRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public usersRow AddusersRow(int pid, string uname, int age, string company, int islocked) {
usersRow rowusersRow = ((usersRow)(this.NewRow()));
rowusersRow.ItemArray = new object[] {
null,
pid,
uname,
age,
company,
islocked};
this.Rows.Add(rowusersRow);
return rowusersRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public usersRow FindByuid(int uid) {
return ((usersRow)(this.Rows.Find(new object[] {
uid})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
usersDataTable cln = ((usersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new usersDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnuid = base.Columns["uid"];
this.columnpid = base.Columns["pid"];
this.columnuname = base.Columns["uname"];
this.columnage = base.Columns["age"];
this.columncompany = base.Columns["company"];
this.columnislocked = base.Columns["islocked"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnuid = new System.Data.DataColumn("uid", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnuid);
this.columnpid = new System.Data.DataColumn("pid", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnpid);
this.columnuname = new System.Data.DataColumn("uname", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnuname);
this.columnage = new System.Data.DataColumn("age", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnage);
this.columncompany = new System.Data.DataColumn("company", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columncompany);
this.columnislocked = new System.Data.DataColumn("islocked", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnislocked);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnuid}, true));
this.columnuid.AutoIncrement = true;
this.columnuid.AllowDBNull = false;
this.columnuid.ReadOnly = true;
this.columnuid.Unique = true;
this.columnuname.MaxLength = 20;
this.columncompany.MaxLength = 40;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public usersRow NewusersRow() {
return ((usersRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new usersRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(usersRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.usersRowChanged != null)) {
this.usersRowChanged(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.usersRowChanging != null)) {
this.usersRowChanging(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.usersRowDeleted != null)) {
this.usersRowDeleted(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.usersRowDeleting != null)) {
this.usersRowDeleting(this, new usersRowChangeEvent(((usersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveusersRow(usersRow 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();
pubsDataSet2 ds = new pubsDataSet2();
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 = "usersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class usersRow : System.Data.DataRow {
private usersDataTable tableusers;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal usersRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableusers = ((usersDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int uid {
get {
return ((int)(this[this.tableusers.uidColumn]));
}
set {
this[this.tableusers.uidColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int pid {
get {
try {
return ((int)(this[this.tableusers.pidColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“users”中列“pid”的值为 DBNull。", e);
}
}
set {
this[this.tableusers.pidColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string uname {
get {
try {
return ((string)(this[this.tableusers.unameColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“users”中列“uname”的值为 DBNull。", e);
}
}
set {
this[this.tableusers.unameColumn] = value;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -