📄 dataset3.cs
字号:
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 string 课程名 {
get {
try {
return ((string)(this[this.table选课表.课程名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table选课表.课程名Column] = value;
}
}
public System.Single 学分 {
get {
try {
return ((System.Single)(this[this.table选课表.学分Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
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 int 成绩 {
get {
try {
return ((int)(this[this.table选课表.成绩Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table选课表.成绩Column] = value;
}
}
public string 课程号 {
get {
return ((string)(this[this.table选课表.课程号Column]));
}
set {
this[this.table选课表.课程号Column] = value;
}
}
public string Expr1 {
get {
return ((string)(this[this.table选课表.Expr1Column]));
}
set {
this[this.table选课表.Expr1Column] = value;
}
}
public bool Is姓名Null() {
return this.IsNull(this.table选课表.姓名Column);
}
public void Set姓名Null() {
this[this.table选课表.姓名Column] = System.Convert.DBNull;
}
public bool Is课程名Null() {
return this.IsNull(this.table选课表.课程名Column);
}
public void Set课程名Null() {
this[this.table选课表.课程名Column] = System.Convert.DBNull;
}
public bool Is学分Null() {
return this.IsNull(this.table选课表.学分Column);
}
public void Set学分Null() {
this[this.table选课表.学分Column] = System.Convert.DBNull;
}
public bool Is教师Null() {
return this.IsNull(this.table选课表.教师Column);
}
public void Set教师Null() {
this[this.table选课表.教师Column] = System.Convert.DBNull;
}
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课程号;
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课程号;
}
}
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 课程号) {
课程表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["课程号"];
}
private void InitClass() {
this.column课程号 = new DataColumn("课程号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column课程号);
this.Constraints.Add(new UniqueConstraint("Constraint1", 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;
}
}
}
[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;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -