📄 dataset1.cs
字号:
}
internal DataColumn 课程日期Column {
get {
return this.column课程日期;
}
}
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 节次, string 人数, string 课程日期, 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 节次, 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["节次"];
this.column人数 = this.Columns["人数"];
this.column课程日期 = this.Columns["课程日期"];
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.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.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("Constraint1", new DataColumn[] {
this.column节次,
this.column课程日期}, true));
this.column课程编号.AllowDBNull = false;
this.column节次.AllowDBNull = false;
this.column课程日期.AllowDBNull = false;
}
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 {
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 {
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 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学生编号;
private DataColumn column学生姓名;
private DataColumn column性别;
private DataColumn column学生密码;
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.Dat
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -