📄 dataset11.cs
字号:
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限制期刊;
}
}
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 类型, short 图书册书, short 期刊册书, int 续借次数, bool 限制图书, bool 限制期刊) {
读者类型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["图书册书"];
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(short), null, System.Data.MappingType.Element);
this.Columns.Add(this.column图书册书);
this.column期刊册书 = new DataColumn("期刊册书", typeof(short), null, System.Data.MappingType.Element);
this.Columns.Add(this.column期刊册书);
this.column续借次数 = new DataColumn("续借次数", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column续借次数);
this.column限制图书 = new DataColumn("限制图书", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.column限制图书);
this.column限制期刊 = new DataColumn("限制期刊", typeof(bool), 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;
this.column限制图书.DefaultValue = false;
this.column限制期刊.DefaultValue = 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 short 图书册书 {
get {
try {
return ((short)(this[this.table读者类型.图书册书Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table读者类型.图书册书Column] = value;
}
}
public short 期刊册书 {
get {
try {
return ((short)(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 bool 限制图书 {
get {
try {
return ((bool)(this[this.table读者类型.限制图书Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table读者类型.限制图书Column] = value;
}
}
public bool 限制期刊 {
get {
try {
return ((bool)(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 acti
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -