📄 dataset1.cs
字号:
public override DataTable Clone() {
民族代码表DataTable cln = ((民族代码表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 民族代码表DataTable();
}
internal void InitVars() {
this.column民族编号 = this.Columns["民族编号"];
this.column民族 = this.Columns["民族"];
}
private void InitClass() {
this.column民族编号 = new DataColumn("民族编号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column民族编号);
this.column民族 = new DataColumn("民族", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column民族);
this.Constraints.Add(new UniqueConstraint("Dataset1Key3", new DataColumn[] {
this.column民族编号}, true));
this.column民族编号.AllowDBNull = false;
this.column民族编号.Unique = true;
}
public 民族代码表Row New民族代码表Row() {
return ((民族代码表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 民族代码表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(民族代码表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.民族代码表RowChanged != null)) {
this.民族代码表RowChanged(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.民族代码表RowChanging != null)) {
this.民族代码表RowChanging(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.民族代码表RowDeleted != null)) {
this.民族代码表RowDeleted(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.民族代码表RowDeleting != null)) {
this.民族代码表RowDeleting(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
}
}
public void Remove民族代码表Row(民族代码表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 民族代码表Row : DataRow {
private 民族代码表DataTable table民族代码表;
internal 民族代码表Row(DataRowBuilder rb) :
base(rb) {
this.table民族代码表 = ((民族代码表DataTable)(this.Table));
}
public string 民族编号 {
get {
return ((string)(this[this.table民族代码表.民族编号Column]));
}
set {
this[this.table民族代码表.民族编号Column] = value;
}
}
public string 民族 {
get {
try {
return ((string)(this[this.table民族代码表.民族Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table民族代码表.民族Column] = value;
}
}
public bool Is民族Null() {
return this.IsNull(this.table民族代码表.民族Column);
}
public void Set民族Null() {
this[this.table民族代码表.民族Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 民族代码表RowChangeEvent : EventArgs {
private 民族代码表Row eventRow;
private DataRowAction eventAction;
public 民族代码表RowChangeEvent(民族代码表Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 民族代码表Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 学籍代码表DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column学籍编号;
private DataColumn column学籍名称;
internal 学籍代码表DataTable() :
base("学籍代码表") {
this.InitClass();
}
internal 学籍代码表DataTable(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 学籍编号Column {
get {
return this.column学籍编号;
}
}
internal DataColumn 学籍名称Column {
get {
return this.column学籍名称;
}
}
public 学籍代码表Row this[int index] {
get {
return ((学籍代码表Row)(this.Rows[index]));
}
}
public event 学籍代码表RowChangeEventHandler 学籍代码表RowChanged;
public event 学籍代码表RowChangeEventHandler 学籍代码表RowChanging;
public event 学籍代码表RowChangeEventHandler 学籍代码表RowDeleted;
public event 学籍代码表RowChangeEventHandler 学籍代码表RowDeleting;
public void Add学籍代码表Row(学籍代码表Row row) {
this.Rows.Add(row);
}
public 学籍代码表Row Add学籍代码表Row(string 学籍编号, string 学籍名称) {
学籍代码表Row row学籍代码表Row = ((学籍代码表Row)(this.NewRow()));
row学籍代码表Row.ItemArray = new object[] {
学籍编号,
学籍名称};
this.Rows.Add(row学籍代码表Row);
return row学籍代码表Row;
}
public 学籍代码表Row FindBy学籍编号(string 学籍编号) {
return ((学籍代码表Row)(this.Rows.Find(new object[] {
学籍编号})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
学籍代码表DataTable cln = ((学籍代码表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 学籍代码表DataTable();
}
internal void InitVars() {
this.column学籍编号 = this.Columns["学籍编号"];
this.column学籍名称 = this.Columns["学籍名称"];
}
private void InitClass() {
this.column学籍编号 = new DataColumn("学籍编号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column学籍编号);
this.column学籍名称 = new DataColumn("学籍名称", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column学籍名称);
this.Constraints.Add(new UniqueConstraint("Dataset1Key4", new DataColumn[] {
this.column学籍编号}, true));
this.column学籍编号.AllowDBNull = false;
this.column学籍编号.Unique = true;
}
public 学籍代码表Row New学籍代码表Row() {
return ((学籍代码表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 学籍代码表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(学籍代码表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.学籍代码表RowChanged != null)) {
this.学籍代码表RowChanged(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.学籍代码表RowChanging != null)) {
this.学籍代码表RowChanging(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.学籍代码表RowDeleted != null)) {
this.学籍代码表RowDeleted(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.学籍代码表RowDeleting != null)) {
this.学籍代码表RowDeleting(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
}
}
public void Remove学籍代码表Row(学籍代码表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 学籍代码表Row : DataRow {
private 学籍代码表DataTable table学籍代码表;
internal 学籍代码表Row(DataRowBuilder rb) :
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -