?? 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 + -