📄 stusrc.cs
字号:
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.TbstusrcRowChanged != null)) {
this.TbstusrcRowChanged(this, new TbstusrcRowChangeEvent(((TbstusrcRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.TbstusrcRowChanging != null)) {
this.TbstusrcRowChanging(this, new TbstusrcRowChangeEvent(((TbstusrcRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.TbstusrcRowDeleted != null)) {
this.TbstusrcRowDeleted(this, new TbstusrcRowChangeEvent(((TbstusrcRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.TbstusrcRowDeleting != null)) {
this.TbstusrcRowDeleting(this, new TbstusrcRowChangeEvent(((TbstusrcRow)(e.Row)), e.Action));
}
}
public void RemoveTbstusrcRow(TbstusrcRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TbstusrcRow : DataRow {
private TbstusrcDataTable tableTbstusrc;
internal TbstusrcRow(DataRowBuilder rb) :
base(rb) {
this.tableTbstusrc = ((TbstusrcDataTable)(this.Table));
}
public System.DateTime schooldate {
get {
try {
return ((System.DateTime)(this[this.tableTbstusrc.schooldateColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbstusrc.schooldateColumn] = value;
}
}
public int _class {
get {
try {
return ((int)(this[this.tableTbstusrc._classColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTbstusrc._classColumn] = value;
}
}
public bool IsschooldateNull() {
return this.IsNull(this.tableTbstusrc.schooldateColumn);
}
public void SetschooldateNull() {
this[this.tableTbstusrc.schooldateColumn] = System.Convert.DBNull;
}
public bool Is_classNull() {
return this.IsNull(this.tableTbstusrc._classColumn);
}
public void Set_classNull() {
this[this.tableTbstusrc._classColumn] = System.Convert.DBNull;
}
public srcmainRow[] GetsrcmainRows() {
return ((srcmainRow[])(this.GetChildRows(this.Table.ChildRelations["Tbstusrc_srcmain"])));
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TbstusrcRowChangeEvent : EventArgs {
private TbstusrcRow eventRow;
private DataRowAction eventAction;
public TbstusrcRowChangeEvent(TbstusrcRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public TbstusrcRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class srcmainDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnname;
private DataColumn columnstuid;
private DataColumn columnsrcmain_Id;
private DataColumn columnTbstusrc_Id;
internal srcmainDataTable() :
base("srcmain") {
this.InitClass();
}
internal srcmainDataTable(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 nameColumn {
get {
return this.columnname;
}
}
internal DataColumn stuidColumn {
get {
return this.columnstuid;
}
}
internal DataColumn srcmain_IdColumn {
get {
return this.columnsrcmain_Id;
}
}
internal DataColumn Tbstusrc_IdColumn {
get {
return this.columnTbstusrc_Id;
}
}
public srcmainRow this[int index] {
get {
return ((srcmainRow)(this.Rows[index]));
}
}
public event srcmainRowChangeEventHandler srcmainRowChanged;
public event srcmainRowChangeEventHandler srcmainRowChanging;
public event srcmainRowChangeEventHandler srcmainRowDeleted;
public event srcmainRowChangeEventHandler srcmainRowDeleting;
public void AddsrcmainRow(srcmainRow row) {
this.Rows.Add(row);
}
public srcmainRow AddsrcmainRow(string name, int stuid, TbstusrcRow parentTbstusrcRowByTbstusrc_srcmain) {
srcmainRow rowsrcmainRow = ((srcmainRow)(this.NewRow()));
rowsrcmainRow.ItemArray = new object[] {
name,
stuid,
null,
parentTbstusrcRowByTbstusrc_srcmain[2]};
this.Rows.Add(rowsrcmainRow);
return rowsrcmainRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
srcmainDataTable cln = ((srcmainDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new srcmainDataTable();
}
internal void InitVars() {
this.columnname = this.Columns["name"];
this.columnstuid = this.Columns["stuid"];
this.columnsrcmain_Id = this.Columns["srcmain_Id"];
this.columnTbstusrc_Id = this.Columns["Tbstusrc_Id"];
}
private void InitClass() {
this.columnname = new DataColumn("name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnname);
this.columnstuid = new DataColumn("stuid", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnstuid);
this.columnsrcmain_Id = new DataColumn("srcmain_Id", typeof(int), null, System.Data.MappingType.Hidden);
this.Columns.Add(this.columnsrcmain_Id);
this.columnTbstusrc_Id = new DataColumn("Tbstusrc_Id", typeof(int), null, System.Data.MappingType.Hidden);
this.Columns.Add(this.columnTbstusrc_Id);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnsrcmain_Id}, true));
this.columnsrcmain_Id.AutoIncrement = true;
this.columnsrcmain_Id.AllowDBNull = false;
this.columnsrcmain_Id.Unique = true;
}
public srcmainRow NewsrcmainRow() {
return ((srcmainRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new srcmainRow(builder);
}
protected override System.Type GetRowType() {
return typeof(srcmainRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.srcmainRowChanged != null)) {
this.srcmainRowChanged(this, new srcmainRowChangeEvent(((srcmainRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.srcmainRowChanging != null)) {
this.srcmainRowChanging(this, new srcmainRowChangeEvent(((srcmainRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.srcmainRowDeleted != null)) {
this.srcmainRowDeleted(this, new srcmainRowChangeEvent(((srcmainRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.srcmainRowDeleting != null)) {
this.srcmainRowDeleting(this, new srcmainRowChangeEvent(((srcmainRow)(e.Row)), e.Action));
}
}
public void RemovesrcmainRow(srcmainRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class srcmainRow : DataRow {
private srcmainDataTable tablesrcmain;
internal srcmainRow(DataRowBuilder rb) :
base(rb) {
this.tablesrcmain = ((srcmainDataTable)(this.Table));
}
public string name {
get {
try {
return ((string)(this[this.tablesrcmain.nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablesrcmain.nameColumn] = value;
}
}
public int stuid {
get {
try {
return ((int)(this[this.tablesrcmain.stuidColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablesrcmain.stuidColumn] = value;
}
}
public TbstusrcRow TbstusrcRow {
get {
return ((TbstusrcRow)(this.GetParentRow(this.Table.ParentRelations["Tbstusrc_srcmain"])));
}
set {
this.SetParentRow(value, this.Table.ParentRelations["Tbstusrc_srcmain"]);
}
}
public bool IsnameNull() {
return this.IsNull(this.tablesrcmain.nameColumn);
}
public void SetnameNull() {
this[this.tablesrcmain.nameColumn] = System.Convert.DBNull;
}
public bool IsstuidNull() {
return this.IsNull(this.tablesrcmain.stuidColumn);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -