📄 dataset1.cs
字号:
private DataColumn column准考证号;
private DataColumn column姓名;
private DataColumn column录用单位;
private DataColumn column联系人;
private DataColumn column联系电话;
internal employ_studentDataTable() :
base("employ_student") {
this.InitClass();
}
internal employ_studentDataTable(DataTable table) :
base(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;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn 准考证号Column {
get {
return this.column准考证号;
}
}
internal DataColumn 姓名Column {
get {
return this.column姓名;
}
}
internal DataColumn 录用单位Column {
get {
return this.column录用单位;
}
}
internal DataColumn 联系人Column {
get {
return this.column联系人;
}
}
internal DataColumn 联系电话Column {
get {
return this.column联系电话;
}
}
public employ_studentRow this[int index] {
get {
return ((employ_studentRow)(this.Rows[index]));
}
}
public event employ_studentRowChangeEventHandler employ_studentRowChanged;
public event employ_studentRowChangeEventHandler employ_studentRowChanging;
public event employ_studentRowChangeEventHandler employ_studentRowDeleted;
public event employ_studentRowChangeEventHandler employ_studentRowDeleting;
public void Addemploy_studentRow(employ_studentRow row) {
this.Rows.Add(row);
}
public employ_studentRow Addemploy_studentRow(int 准考证号, string 姓名, string 录用单位, string 联系人, string 联系电话) {
employ_studentRow rowemploy_studentRow = ((employ_studentRow)(this.NewRow()));
rowemploy_studentRow.ItemArray = new object[] {
准考证号,
姓名,
录用单位,
联系人,
联系电话};
this.Rows.Add(rowemploy_studentRow);
return rowemploy_studentRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
employ_studentDataTable cln = ((employ_studentDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new employ_studentDataTable();
}
internal void InitVars() {
this.column准考证号 = this.Columns["准考证号"];
this.column姓名 = this.Columns["姓名"];
this.column录用单位 = this.Columns["录用单位"];
this.column联系人 = this.Columns["联系人"];
this.column联系电话 = this.Columns["联系电话"];
}
private void InitClass() {
this.column准考证号 = new DataColumn("准考证号", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column准考证号);
this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column姓名);
this.column录用单位 = new DataColumn("录用单位", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column录用单位);
this.column联系人 = new DataColumn("联系人", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column联系人);
this.column联系电话 = new DataColumn("联系电话", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column联系电话);
this.column准考证号.AllowDBNull = false;
this.column姓名.AllowDBNull = false;
this.column录用单位.AllowDBNull = false;
}
public employ_studentRow Newemploy_studentRow() {
return ((employ_studentRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new employ_studentRow(builder);
}
protected override System.Type GetRowType() {
return typeof(employ_studentRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.employ_studentRowChanged != null)) {
this.employ_studentRowChanged(this, new employ_studentRowChangeEvent(((employ_studentRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.employ_studentRowChanging != null)) {
this.employ_studentRowChanging(this, new employ_studentRowChangeEvent(((employ_studentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.employ_studentRowDeleted != null)) {
this.employ_studentRowDeleted(this, new employ_studentRowChangeEvent(((employ_studentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.employ_studentRowDeleting != null)) {
this.employ_studentRowDeleting(this, new employ_studentRowChangeEvent(((employ_studentRow)(e.Row)), e.Action));
}
}
public void Removeemploy_studentRow(employ_studentRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class employ_studentRow : DataRow {
private employ_studentDataTable tableemploy_student;
internal employ_studentRow(DataRowBuilder rb) :
base(rb) {
this.tableemploy_student = ((employ_studentDataTable)(this.Table));
}
public int 准考证号 {
get {
return ((int)(this[this.tableemploy_student.准考证号Column]));
}
set {
this[this.tableemploy_student.准考证号Column] = value;
}
}
public string 姓名 {
get {
return ((string)(this[this.tableemploy_student.姓名Column]));
}
set {
this[this.tableemploy_student.姓名Column] = value;
}
}
public string 录用单位 {
get {
return ((string)(this[this.tableemploy_student.录用单位Column]));
}
set {
this[this.tableemploy_student.录用单位Column] = value;
}
}
public string 联系人 {
get {
try {
return ((string)(this[this.tableemploy_student.联系人Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableemploy_student.联系人Column] = value;
}
}
public string 联系电话 {
get {
try {
return ((string)(this[this.tableemploy_student.联系电话Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableemploy_student.联系电话Column] = value;
}
}
public bool Is联系人Null() {
return this.IsNull(this.tableemploy_student.联系人Column);
}
public void Set联系人Null() {
this[this.tableemploy_student.联系人Column] = System.Convert.DBNull;
}
public bool Is联系电话Null() {
return this.IsNull(this.tableemploy_student.联系电话Column);
}
public void Set联系电话Null() {
this[this.tableemploy_student.联系电话Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class employ_studentRowChangeEvent : EventArgs {
private employ_studentRow eventRow;
private DataRowAction eventAction;
public employ_studentRowChangeEvent(employ_studentRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public employ_studentRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class vstudentDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column准考证号;
private DataColumn column姓名;
private DataColumn column性别;
private DataColumn column生日;
private DataColumn column地址;
private DataColumn column身份证;
private DataColumn column电话;
internal vstudentDataTable() :
base("vstudent") {
this.InitClass();
}
internal vstudentDataTable(DataTable table) :
base(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;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -