📄 dataset_xyxk.cs
字号:
cou_no,
cou_name};
this.Rows.Add(rowCourseRow);
return rowCourseRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
CourseDataTable cln = ((CourseDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new CourseDataTable();
}
internal void InitVars() {
this.columncou_no = this.Columns["cou_no"];
this.columncou_name = this.Columns["cou_name"];
}
private void InitClass() {
this.columncou_no = new DataColumn("cou_no", typeof(System.Double), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncou_no);
this.columncou_name = new DataColumn("cou_name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncou_name);
}
public CourseRow NewCourseRow() {
return ((CourseRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new CourseRow(builder);
}
protected override System.Type GetRowType() {
return typeof(CourseRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CourseRowChanged != null)) {
this.CourseRowChanged(this, new CourseRowChangeEvent(((CourseRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CourseRowChanging != null)) {
this.CourseRowChanging(this, new CourseRowChangeEvent(((CourseRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CourseRowDeleted != null)) {
this.CourseRowDeleted(this, new CourseRowChangeEvent(((CourseRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CourseRowDeleting != null)) {
this.CourseRowDeleting(this, new CourseRowChangeEvent(((CourseRow)(e.Row)), e.Action));
}
}
public void RemoveCourseRow(CourseRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class CourseRow : DataRow {
private CourseDataTable tableCourse;
internal CourseRow(DataRowBuilder rb) :
base(rb) {
this.tableCourse = ((CourseDataTable)(this.Table));
}
public System.Double cou_no {
get {
try {
return ((System.Double)(this[this.tableCourse.cou_noColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableCourse.cou_noColumn] = value;
}
}
public string cou_name {
get {
try {
return ((string)(this[this.tableCourse.cou_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableCourse.cou_nameColumn] = value;
}
}
public bool Iscou_noNull() {
return this.IsNull(this.tableCourse.cou_noColumn);
}
public void Setcou_noNull() {
this[this.tableCourse.cou_noColumn] = System.Convert.DBNull;
}
public bool Iscou_nameNull() {
return this.IsNull(this.tableCourse.cou_nameColumn);
}
public void Setcou_nameNull() {
this[this.tableCourse.cou_nameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class CourseRowChangeEvent : EventArgs {
private CourseRow eventRow;
private DataRowAction eventAction;
public CourseRowChangeEvent(CourseRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public CourseRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class knowledgeSystemDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columncou_no;
private DataColumn columnspe_no;
internal knowledgeSystemDataTable() :
base("knowledgeSystem") {
this.InitClass();
}
internal knowledgeSystemDataTable(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 cou_noColumn {
get {
return this.columncou_no;
}
}
internal DataColumn spe_noColumn {
get {
return this.columnspe_no;
}
}
public knowledgeSystemRow this[int index] {
get {
return ((knowledgeSystemRow)(this.Rows[index]));
}
}
public event knowledgeSystemRowChangeEventHandler knowledgeSystemRowChanged;
public event knowledgeSystemRowChangeEventHandler knowledgeSystemRowChanging;
public event knowledgeSystemRowChangeEventHandler knowledgeSystemRowDeleted;
public event knowledgeSystemRowChangeEventHandler knowledgeSystemRowDeleting;
public void AddknowledgeSystemRow(knowledgeSystemRow row) {
this.Rows.Add(row);
}
public knowledgeSystemRow AddknowledgeSystemRow(System.Double cou_no, int spe_no) {
knowledgeSystemRow rowknowledgeSystemRow = ((knowledgeSystemRow)(this.NewRow()));
rowknowledgeSystemRow.ItemArray = new object[] {
cou_no,
spe_no};
this.Rows.Add(rowknowledgeSystemRow);
return rowknowledgeSystemRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
knowledgeSystemDataTable cln = ((knowledgeSystemDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new knowledgeSystemDataTable();
}
internal void InitVars() {
this.columncou_no = this.Columns["cou_no"];
this.columnspe_no = this.Columns["spe_no"];
}
private void InitClass() {
this.columncou_no = new DataColumn("cou_no", typeof(System.Double), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncou_no);
this.columnspe_no = new DataColumn("spe_no", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnspe_no);
}
public knowledgeSystemRow NewknowledgeSystemRow() {
return ((knowledgeSystemRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new knowledgeSystemRow(builder);
}
protected override System.Type GetRowType() {
return typeof(knowledgeSystemRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.knowledgeSystemRowChanged != null)) {
this.knowledgeSystemRowChanged(this, new knowledgeSystemRowChangeEvent(((knowledgeSystemRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.knowledgeSystemRowChanging != null)) {
this.knowledgeSystemRowChanging(this, new knowledgeSystemRowChangeEvent(((knowledgeSystemRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.knowledgeSystemRowDeleted != null)) {
this.knowledgeSystemRowDeleted(this, new knowledgeSystemRowChangeEvent(((knowledgeSystemRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.knowledgeSystemRowDeleting != null)) {
this.knowledgeSystemRowDeleting(this, new knowledgeSystemRowChangeEvent(((knowledgeSystemRow)(e.Row)), e.Action));
}
}
public void RemoveknowledgeSystemRow(knowledgeSystemRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class knowledgeSystemRow : DataRow {
private knowledgeSystemDataTable tableknowledgeSystem;
internal knowledgeSystemRow(DataRowBuilder rb) :
base(rb) {
this.tableknowledgeSystem = ((knowledgeSystemDataTable)(this.Table));
}
public System.Double cou_no {
get {
try {
return ((System.Double)(this[this.tableknowledgeSystem.cou_noColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableknowledgeSystem.cou_noColumn] = value;
}
}
public int spe_no {
get {
try {
return ((int)(this[this.tableknowledgeSystem.spe_noColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableknowledgeSystem.spe_noColumn] = value;
}
}
public bool Iscou_noNull() {
return this.IsNull(this.tableknowledgeSystem.cou_noColumn);
}
public void Setcou_noNull() {
this[this.tableknowledgeSystem.cou_noColumn] = System.Convert.DBNull;
}
public bool Isspe_noNull() {
return this.IsNull(this.tableknowledgeSystem.spe_noColumn);
}
public void Setspe_noNull() {
this[this.tableknowledgeSystem.spe_noColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class knowledgeSystemRowChangeEvent : EventArgs {
private knowledgeSystemRow eventRow;
private DataRowAction eventAction;
public knowledgeSystemRowChangeEvent(knowledgeSystemRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public knowledgeSystemRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -