📄 stuaddedinfo.cs
字号:
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablepunishments.punishment_isMovedColumn] = value;
}
}
public string punishmentType_name {
get {
try {
return ((string)(this[this.tablepunishments.punishmentType_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablepunishments.punishmentType_nameColumn] = value;
}
}
public punishmentTypesRow punishmentTypesRow {
get {
return ((punishmentTypesRow)(this.GetParentRow(this.Table.ParentRelations["punishmentTypespunishments"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["punishmentTypespunishments"]);
}
}
public bool Ispunishment_studentIDNull() {
return this.IsNull(this.tablepunishments.punishment_studentIDColumn);
}
public void Setpunishment_studentIDNull() {
this[this.tablepunishments.punishment_studentIDColumn] = System.Convert.DBNull;
}
public bool Ispunishment_typeIDNull() {
return this.IsNull(this.tablepunishments.punishment_typeIDColumn);
}
public void Setpunishment_typeIDNull() {
this[this.tablepunishments.punishment_typeIDColumn] = System.Convert.DBNull;
}
public bool Ispunishment_reasonNull() {
return this.IsNull(this.tablepunishments.punishment_reasonColumn);
}
public void Setpunishment_reasonNull() {
this[this.tablepunishments.punishment_reasonColumn] = System.Convert.DBNull;
}
public bool Ispunishment_dateNull() {
return this.IsNull(this.tablepunishments.punishment_dateColumn);
}
public void Setpunishment_dateNull() {
this[this.tablepunishments.punishment_dateColumn] = System.Convert.DBNull;
}
public bool Ispunishment_isMovedNull() {
return this.IsNull(this.tablepunishments.punishment_isMovedColumn);
}
public void Setpunishment_isMovedNull() {
this[this.tablepunishments.punishment_isMovedColumn] = System.Convert.DBNull;
}
public bool IspunishmentType_nameNull() {
return this.IsNull(this.tablepunishments.punishmentType_nameColumn);
}
public void SetpunishmentType_nameNull() {
this[this.tablepunishments.punishmentType_nameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class punishmentsRowChangeEvent : EventArgs {
private punishmentsRow eventRow;
private DataRowAction eventAction;
public punishmentsRowChangeEvent(punishmentsRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public punishmentsRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class changeTypesDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnchangeType_ID;
private DataColumn columnchangeType_name;
internal changeTypesDataTable() :
base("changeTypes") {
this.InitClass();
}
internal changeTypesDataTable(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 changeType_IDColumn {
get {
return this.columnchangeType_ID;
}
}
internal DataColumn changeType_nameColumn {
get {
return this.columnchangeType_name;
}
}
public changeTypesRow this[int index] {
get {
return ((changeTypesRow)(this.Rows[index]));
}
}
public event changeTypesRowChangeEventHandler changeTypesRowChanged;
public event changeTypesRowChangeEventHandler changeTypesRowChanging;
public event changeTypesRowChangeEventHandler changeTypesRowDeleted;
public event changeTypesRowChangeEventHandler changeTypesRowDeleting;
public void AddchangeTypesRow(changeTypesRow row) {
this.Rows.Add(row);
}
public changeTypesRow AddchangeTypesRow(int changeType_ID, string changeType_name) {
changeTypesRow rowchangeTypesRow = ((changeTypesRow)(this.NewRow()));
rowchangeTypesRow.ItemArray = new object[] {
changeType_ID,
changeType_name};
this.Rows.Add(rowchangeTypesRow);
return rowchangeTypesRow;
}
public changeTypesRow FindBychangeType_ID(int changeType_ID) {
return ((changeTypesRow)(this.Rows.Find(new object[] {
changeType_ID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
changeTypesDataTable cln = ((changeTypesDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new changeTypesDataTable();
}
internal void InitVars() {
this.columnchangeType_ID = this.Columns["changeType_ID"];
this.columnchangeType_name = this.Columns["changeType_name"];
}
private void InitClass() {
this.columnchangeType_ID = new DataColumn("changeType_ID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnchangeType_ID);
this.columnchangeType_name = new DataColumn("changeType_name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnchangeType_name);
this.Constraints.Add(new UniqueConstraint("StuAddedInfoKey4", new DataColumn[] {
this.columnchangeType_ID}, true));
this.columnchangeType_ID.AllowDBNull = false;
this.columnchangeType_ID.Unique = true;
}
public changeTypesRow NewchangeTypesRow() {
return ((changeTypesRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new changeTypesRow(builder);
}
protected override System.Type GetRowType() {
return typeof(changeTypesRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.changeTypesRowChanged != null)) {
this.changeTypesRowChanged(this, new changeTypesRowChangeEvent(((changeTypesRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.changeTypesRowChanging != null)) {
this.changeTypesRowChanging(this, new changeTypesRowChangeEvent(((changeTypesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.changeTypesRowDeleted != null)) {
this.changeTypesRowDeleted(this, new changeTypesRowChangeEvent(((changeTypesRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.changeTypesRowDeleting != null)) {
this.changeTypesRowDeleting(this, new changeTypesRowChangeEvent(((changeTypesRow)(e.Row)), e.Action));
}
}
public void RemovechangeTypesRow(changeTypesRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class changeTypesRow : DataRow {
private changeTypesDataTable tablechangeTypes;
internal changeTypesRow(DataRowBuilder rb) :
base(rb) {
this.tablechangeTypes = ((changeTypesDataTable)(this.Table));
}
public int changeType_ID {
get {
return ((int)(this[this.tablechangeTypes.changeType_IDColumn]));
}
set {
this[this.tablechangeTypes.changeType_IDColumn] = value;
}
}
public string changeType_name {
get {
try {
return ((string)(this[this.tablechangeTypes.changeType_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablechangeTypes.changeType_nameColumn] = value;
}
}
public bool IschangeType_nameNull() {
return this.IsNull(this.tablechangeTypes.changeType_nameColumn);
}
public void SetchangeType_nameNull() {
this[this.tablechangeTypes.changeType_nameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class changeTypesRowChangeEvent : EventArgs {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -