📄 dataset1.cs
字号:
}
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 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.Decimal 人数 {
get {
try {
return ((System.Decimal)(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;
}
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政治面貌编号;
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.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学号;
}
}
internal DataColumn 班级编号Column {
get {
return this.column班级编号;
}
}
internal DataColumn 性别Column {
get {
return this.column性别;
}
}
internal DataColumn 年级Column {
get {
return this.column年级;
}
}
internal DataColumn 政治面貌编号Column {
get {
return this.column政治面貌编号;
}
}
internal DataColumn 民族编号Column {
get {
return this.column民族编号;
}
}
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 性别, int 年级, 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 学号) {
return ((学生信息Row)(this.Rows.Find(new object[] {
学号})));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -