?? dataset1.cs
字號:
public event 用戶表RowChangeEventHandler 用戶表RowChanging;
public event 用戶表RowChangeEventHandler 用戶表RowDeleted;
public event 用戶表RowChangeEventHandler 用戶表RowDeleting;
public void Add用戶表Row(用戶表Row row) {
this.Rows.Add(row);
}
public 用戶表Row Add用戶表Row(string 用戶帳號, string 密碼, string 金額) {
用戶表Row row用戶表Row = ((用戶表Row)(this.NewRow()));
row用戶表Row.ItemArray = new object[] {
用戶帳號,
密碼,
金額};
this.Rows.Add(row用戶表Row);
return row用戶表Row;
}
public 用戶表Row FindBy用戶帳號(string 用戶帳號) {
return ((用戶表Row)(this.Rows.Find(new object[] {
用戶帳號})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
用戶表DataTable cln = ((用戶表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 用戶表DataTable();
}
internal void InitVars() {
this.column用戶帳號 = this.Columns["用戶帳號"];
this.column密碼 = this.Columns["密碼"];
this.column金額 = this.Columns["金額"];
}
private void InitClass() {
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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column用戶帳號}, true));
this.column用戶帳號.AllowDBNull = false;
this.column用戶帳號.Unique = true;
}
public 用戶表Row New用戶表Row() {
return ((用戶表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 用戶表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(用戶表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.用戶表RowChanged != null)) {
this.用戶表RowChanged(this, new 用戶表RowChangeEvent(((用戶表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.用戶表RowChanging != null)) {
this.用戶表RowChanging(this, new 用戶表RowChangeEvent(((用戶表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.用戶表RowDeleted != null)) {
this.用戶表RowDeleted(this, new 用戶表RowChangeEvent(((用戶表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.用戶表RowDeleting != null)) {
this.用戶表RowDeleting(this, new 用戶表RowChangeEvent(((用戶表Row)(e.Row)), e.Action));
}
}
public void Remove用戶表Row(用戶表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 用戶表Row : DataRow {
private 用戶表DataTable table用戶表;
internal 用戶表Row(DataRowBuilder rb) :
base(rb) {
this.table用戶表 = ((用戶表DataTable)(this.Table));
}
public string 用戶帳號 {
get {
return ((string)(this[this.table用戶表.用戶帳號Column]));
}
set {
this[this.table用戶表.用戶帳號Column] = value;
}
}
public string 密碼 {
get {
try {
return ((string)(this[this.table用戶表.密碼Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table用戶表.密碼Column] = value;
}
}
public string 金額 {
get {
try {
return ((string)(this[this.table用戶表.金額Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table用戶表.金額Column] = value;
}
}
public bool Is密碼Null() {
return this.IsNull(this.table用戶表.密碼Column);
}
public void Set密碼Null() {
this[this.table用戶表.密碼Column] = System.Convert.DBNull;
}
public bool Is金額Null() {
return this.IsNull(this.table用戶表.金額Column);
}
public void Set金額Null() {
this[this.table用戶表.金額Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 用戶表RowChangeEvent : EventArgs {
private 用戶表Row eventRow;
private DataRowAction eventAction;
public 用戶表RowChangeEvent(用戶表Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 用戶表Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -