📄 class.cs
字号:
base(rb) {
this.tableTbclass = ((TbclassDataTable)(this.Table));
}
public System.DateTime schooldate {
get {
try {
return ((System.DateTime)(this[this.tableTbclass.schooldateColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbclass.schooldateColumn] = value;
}
}
public int _class {
get {
try {
return ((int)(this[this.tableTbclass._classColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbclass._classColumn] = value;
}
}
public int stucount {
get {
try {
return ((int)(this[this.tableTbclass.stucountColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbclass.stucountColumn] = value;
}
}
public int master {
get {
try {
return ((int)(this[this.tableTbclass.masterColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbclass.masterColumn] = value;
}
}
public bool IsschooldateNull() {
return this.IsNull(this.tableTbclass.schooldateColumn);
}
public void SetschooldateNull() {
this[this.tableTbclass.schooldateColumn] = System.Convert.DBNull;
}
public bool Is_classNull() {
return this.IsNull(this.tableTbclass._classColumn);
}
public void Set_classNull() {
this[this.tableTbclass._classColumn] = System.Convert.DBNull;
}
public bool IsstucountNull() {
return this.IsNull(this.tableTbclass.stucountColumn);
}
public void SetstucountNull() {
this[this.tableTbclass.stucountColumn] = System.Convert.DBNull;
}
public bool IsmasterNull() {
return this.IsNull(this.tableTbclass.masterColumn);
}
public void SetmasterNull() {
this[this.tableTbclass.masterColumn] = System.Convert.DBNull;
}
public manegerRow[] GetmanegerRows() {
return ((manegerRow[])(this.GetChildRows(this.Table.ChildRelations["Tbclass_maneger"])));
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TbclassRowChangeEvent : EventArgs {
private TbclassRow eventRow;
private DataRowAction eventAction;
public TbclassRowChangeEvent(TbclassRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public TbclassRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class manegerDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnstuid;
private DataColumn columnwork;
private DataColumn columnTbclass_Id;
internal manegerDataTable() :
base("maneger") {
this.InitClass();
}
internal manegerDataTable(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 stuidColumn {
get {
return this.columnstuid;
}
}
internal DataColumn workColumn {
get {
return this.columnwork;
}
}
internal DataColumn Tbclass_IdColumn {
get {
return this.columnTbclass_Id;
}
}
public manegerRow this[int index] {
get {
return ((manegerRow)(this.Rows[index]));
}
}
public event manegerRowChangeEventHandler manegerRowChanged;
public event manegerRowChangeEventHandler manegerRowChanging;
public event manegerRowChangeEventHandler manegerRowDeleted;
public event manegerRowChangeEventHandler manegerRowDeleting;
public void AddmanegerRow(manegerRow row) {
this.Rows.Add(row);
}
public manegerRow AddmanegerRow(int stuid, string work, TbclassRow parentTbclassRowByTbclass_maneger) {
manegerRow rowmanegerRow = ((manegerRow)(this.NewRow()));
rowmanegerRow.ItemArray = new object[] {
stuid,
work,
parentTbclassRowByTbclass_maneger[4]};
this.Rows.Add(rowmanegerRow);
return rowmanegerRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
manegerDataTable cln = ((manegerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new manegerDataTable();
}
internal void InitVars() {
this.columnstuid = this.Columns["stuid"];
this.columnwork = this.Columns["work"];
this.columnTbclass_Id = this.Columns["Tbclass_Id"];
}
private void InitClass() {
this.columnstuid = new DataColumn("stuid", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnstuid);
this.columnwork = new DataColumn("work", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnwork);
this.columnTbclass_Id = new DataColumn("Tbclass_Id", typeof(int), null, System.Data.MappingType.Hidden);
this.Columns.Add(this.columnTbclass_Id);
}
public manegerRow NewmanegerRow() {
return ((manegerRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new manegerRow(builder);
}
protected override System.Type GetRowType() {
return typeof(manegerRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.manegerRowChanged != null)) {
this.manegerRowChanged(this, new manegerRowChangeEvent(((manegerRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.manegerRowChanging != null)) {
this.manegerRowChanging(this, new manegerRowChangeEvent(((manegerRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.manegerRowDeleted != null)) {
this.manegerRowDeleted(this, new manegerRowChangeEvent(((manegerRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.manegerRowDeleting != null)) {
this.manegerRowDeleting(this, new manegerRowChangeEvent(((manegerRow)(e.Row)), e.Action));
}
}
public void RemovemanegerRow(manegerRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class manegerRow : DataRow {
private manegerDataTable tablemaneger;
internal manegerRow(DataRowBuilder rb) :
base(rb) {
this.tablemaneger = ((manegerDataTable)(this.Table));
}
public int stuid {
get {
try {
return ((int)(this[this.tablemaneger.stuidColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablemaneger.stuidColumn] = value;
}
}
public string work {
get {
try {
return ((string)(this[this.tablemaneger.workColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablemaneger.workColumn] = value;
}
}
public TbclassRow TbclassRow {
get {
return ((TbclassRow)(this.GetParentRow(this.Table.ParentRelations["Tbclass_maneger"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["Tbclass_maneger"]);
}
}
public bool IsstuidNull() {
return this.IsNull(this.tablemaneger.stuidColumn);
}
public void SetstuidNull() {
this[this.tablemaneger.stuidColumn] = System.Convert.DBNull;
}
public bool IsworkNull() {
return this.IsNull(this.tablemaneger.workColumn);
}
public void SetworkNull() {
this[this.tablemaneger.workColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class manegerRowChangeEvent : EventArgs {
private manegerRow eventRow;
private DataRowAction eventAction;
public manegerRowChangeEvent(manegerRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public manegerRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -