📄 organization.cs
字号:
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.collegesRowChanged != null)) {
this.collegesRowChanged(this, new collegesRowChangeEvent(((collegesRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.collegesRowChanging != null)) {
this.collegesRowChanging(this, new collegesRowChangeEvent(((collegesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.collegesRowDeleted != null)) {
this.collegesRowDeleted(this, new collegesRowChangeEvent(((collegesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.collegesRowDeleting != null)) {
this.collegesRowDeleting(this, new collegesRowChangeEvent(((collegesRow)(e.Row)), e.Action));
}
}
public void RemovecollegesRow(collegesRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class collegesRow : DataRow {
private collegesDataTable tablecolleges;
internal collegesRow(DataRowBuilder rb) :
base(rb) {
this.tablecolleges = ((collegesDataTable)(this.Table));
}
public string college_ID {
get {
return ((string)(this[this.tablecolleges.college_IDColumn]));
}
set {
this[this.tablecolleges.college_IDColumn] = value;
}
}
public string college_name {
get {
try {
return ((string)(this[this.tablecolleges.college_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablecolleges.college_nameColumn] = value;
}
}
public bool Iscollege_nameNull() {
return this.IsNull(this.tablecolleges.college_nameColumn);
}
public void Setcollege_nameNull() {
this[this.tablecolleges.college_nameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class collegesRowChangeEvent : EventArgs {
private collegesRow eventRow;
private DataRowAction eventAction;
public collegesRowChangeEvent(collegesRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public collegesRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class specialityDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnspeciality_ID;
private DataColumn columnspeciality_name;
private DataColumn columnspeciality_college;
internal specialityDataTable() :
base("speciality") {
this.InitClass();
}
internal specialityDataTable(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 speciality_IDColumn {
get {
return this.columnspeciality_ID;
}
}
internal DataColumn speciality_nameColumn {
get {
return this.columnspeciality_name;
}
}
internal DataColumn speciality_collegeColumn {
get {
return this.columnspeciality_college;
}
}
public specialityRow this[int index] {
get {
return ((specialityRow)(this.Rows[index]));
}
}
public event specialityRowChangeEventHandler specialityRowChanged;
public event specialityRowChangeEventHandler specialityRowChanging;
public event specialityRowChangeEventHandler specialityRowDeleted;
public event specialityRowChangeEventHandler specialityRowDeleting;
public void AddspecialityRow(specialityRow row) {
this.Rows.Add(row);
}
public specialityRow AddspecialityRow(string speciality_ID, string speciality_name, string speciality_college) {
specialityRow rowspecialityRow = ((specialityRow)(this.NewRow()));
rowspecialityRow.ItemArray = new object[] {
speciality_ID,
speciality_name,
speciality_college};
this.Rows.Add(rowspecialityRow);
return rowspecialityRow;
}
public specialityRow FindByspeciality_ID(string speciality_ID) {
return ((specialityRow)(this.Rows.Find(new object[] {
speciality_ID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
specialityDataTable cln = ((specialityDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new specialityDataTable();
}
internal void InitVars() {
this.columnspeciality_ID = this.Columns["speciality_ID"];
this.columnspeciality_name = this.Columns["speciality_name"];
this.columnspeciality_college = this.Columns["speciality_college"];
}
private void InitClass() {
this.columnspeciality_ID = new DataColumn("speciality_ID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnspeciality_ID);
this.columnspeciality_name = new DataColumn("speciality_name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnspeciality_name);
this.columnspeciality_college = new DataColumn("speciality_college", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnspeciality_college);
this.Constraints.Add(new UniqueConstraint("OrganizationKey2", new DataColumn[] {
this.columnspeciality_ID}, true));
this.columnspeciality_ID.AllowDBNull = false;
this.columnspeciality_ID.Unique = true;
}
public specialityRow NewspecialityRow() {
return ((specialityRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new specialityRow(builder);
}
protected override System.Type GetRowType() {
return typeof(specialityRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.specialityRowChanged != null)) {
this.specialityRowChanged(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.specialityRowChanging != null)) {
this.specialityRowChanging(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.specialityRowDeleted != null)) {
this.specialityRowDeleted(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.specialityRowDeleting != null)) {
this.specialityRowDeleting(this, new specialityRowChangeEvent(((specialityRow)(e.Row)), e.Action));
}
}
public void RemovespecialityRow(specialityRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class specialityRow : DataRow {
private specialityDataTable tablespeciality;
internal specialityRow(DataRowBuilder rb) :
base(rb) {
this.tablespeciality = ((specialityDataTable)(this.Table));
}
public string speciality_ID {
get {
return ((string)(this[this.tablespeciality.speciality_IDColumn]));
}
set {
this[this.tablespeciality.speciality_IDColumn] = value;
}
}
public string speciality_name {
get {
try {
return ((string)(this[this.tablespeciality.speciality_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablespeciality.speciality_nameColumn] = value;
}
}
public string speciality_college {
get {
try {
return ((string)(this[this.tablespeciality.speciality_collegeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablespeciality.speciality_collegeColumn] = value;
}
}
public bool Isspeciality_nameNull() {
return this.IsNull(this.tablespeciality.speciality_nameColumn);
}
public void Setspeciality_nameNull() {
this[this.tablespeciality.speciality_nameColumn] = System.Convert.DBNull;
}
public bool Isspeciality_collegeNull() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -