?? dataset1.cs
字號:
this[this.tabletblEmployee.SelfIntroColumn] = System.Convert.DBNull;
}
public bool IsVacationRemainNull() {
return this.IsNull(this.tabletblEmployee.VacationRemainColumn);
}
public void SetVacationRemainNull() {
this[this.tabletblEmployee.VacationRemainColumn] = System.Convert.DBNull;
}
public bool IsEmployeeLevelNull() {
return this.IsNull(this.tabletblEmployee.EmployeeLevelColumn);
}
public void SetEmployeeLevelNull() {
this[this.tabletblEmployee.EmployeeLevelColumn] = System.Convert.DBNull;
}
public bool IsPhotoImageNull() {
return this.IsNull(this.tabletblEmployee.PhotoImageColumn);
}
public void SetPhotoImageNull() {
this[this.tabletblEmployee.PhotoImageColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblEmployeeRowChangeEvent : EventArgs {
private tblEmployeeRow eventRow;
private DataRowAction eventAction;
public tblEmployeeRowChangeEvent(tblEmployeeRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public tblEmployeeRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblDepartmentDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnDeptID;
private DataColumn columnDeptName;
private DataColumn columnDescription;
private DataColumn columnManagerID;
internal tblDepartmentDataTable() :
base("tblDepartment") {
this.InitClass();
}
internal tblDepartmentDataTable(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 DeptIDColumn {
get {
return this.columnDeptID;
}
}
internal DataColumn DeptNameColumn {
get {
return this.columnDeptName;
}
}
internal DataColumn DescriptionColumn {
get {
return this.columnDescription;
}
}
internal DataColumn ManagerIDColumn {
get {
return this.columnManagerID;
}
}
public tblDepartmentRow this[int index] {
get {
return ((tblDepartmentRow)(this.Rows[index]));
}
}
public event tblDepartmentRowChangeEventHandler tblDepartmentRowChanged;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowChanging;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowDeleted;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowDeleting;
public void AddtblDepartmentRow(tblDepartmentRow row) {
this.Rows.Add(row);
}
public tblDepartmentRow AddtblDepartmentRow(string DeptName, string Description, int ManagerID) {
tblDepartmentRow rowtblDepartmentRow = ((tblDepartmentRow)(this.NewRow()));
rowtblDepartmentRow.ItemArray = new object[] {
null,
DeptName,
Description,
ManagerID};
this.Rows.Add(rowtblDepartmentRow);
return rowtblDepartmentRow;
}
public tblDepartmentRow FindByDeptID(int DeptID) {
return ((tblDepartmentRow)(this.Rows.Find(new object[] {
DeptID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
tblDepartmentDataTable cln = ((tblDepartmentDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new tblDepartmentDataTable();
}
internal void InitVars() {
this.columnDeptID = this.Columns["DeptID"];
this.columnDeptName = this.Columns["DeptName"];
this.columnDescription = this.Columns["Description"];
this.columnManagerID = this.Columns["ManagerID"];
}
private void InitClass() {
this.columnDeptID = new DataColumn("DeptID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDeptID);
this.columnDeptName = new DataColumn("DeptName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDeptName);
this.columnDescription = new DataColumn("Description", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDescription);
this.columnManagerID = new DataColumn("ManagerID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnManagerID);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnDeptID}, true));
this.columnDeptID.AutoIncrement = true;
this.columnDeptID.AllowDBNull = false;
this.columnDeptID.ReadOnly = true;
this.columnDeptID.Unique = true;
}
public tblDepartmentRow NewtblDepartmentRow() {
return ((tblDepartmentRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new tblDepartmentRow(builder);
}
protected override System.Type GetRowType() {
return typeof(tblDepartmentRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.tblDepartmentRowChanged != null)) {
this.tblDepartmentRowChanged(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.tblDepartmentRowChanging != null)) {
this.tblDepartmentRowChanging(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.tblDepartmentRowDeleted != null)) {
this.tblDepartmentRowDeleted(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.tblDepartmentRowDeleting != null)) {
this.tblDepartmentRowDeleting(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
public void RemovetblDepartmentRow(tblDepartmentRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblDepartmentRow : DataRow {
private tblDepartmentDataTable tabletblDepartment;
internal tblDepartmentRow(DataRowBuilder rb) :
base(rb) {
this.tabletblDepartment = ((tblDepartmentDataTable)(this.Table));
}
public int DeptID {
get {
return ((int)(this[this.tabletblDepartment.DeptIDColumn]));
}
set {
this[this.tabletblDepartment.DeptIDColumn] = value;
}
}
public string DeptName {
get {
try {
return ((string)(this[this.tabletblDepartment.DeptNameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.tabletblDepartment.DeptNameColumn] = value;
}
}
public string Description {
get {
try {
return ((string)(this[this.tabletblDepartment.DescriptionColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.tabletblDepartment.DescriptionColumn] = value;
}
}
public int ManagerID {
get {
try {
return ((int)(this[this.tabletblDepartment.ManagerIDColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.tabletblDepartment.ManagerIDColumn] = value;
}
}
public bool IsDeptNameNull() {
return this.IsNull(this.tabletblDepartment.DeptNameColumn);
}
public void SetDeptNameNull() {
this[this.tabletblDepartment.DeptNameColumn] = System.Convert.DBNull;
}
public bool IsDescriptionNull() {
return this.IsNull(this.tabletblDepartment.DescriptionColumn);
}
public void SetDescriptionNull() {
this[this.tabletblDepartment.DescriptionColumn] = System.Convert.DBNull;
}
public bool IsManagerIDNull() {
return this.IsNull(this.tabletblDepartment.ManagerIDColumn);
}
public void SetManagerIDNull() {
this[this.tabletblDepartment.ManagerIDColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblDepartmentRowChangeEvent : EventArgs {
private tblDepartmentRow eventRow;
private DataRowAction eventAction;
public tblDepartmentRowChangeEvent(tblDepartmentRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public tblDepartmentRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -