📄 dataset11.cs
字号:
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登记日期;
}
}
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 性别,
string 类型,
System.DateTime 出生日期,
string 有效证件,
string 证件号码,
string 联系方式,
System.DateTime 登记日期,
System.DateTime 有限期至,
string 操作员,
string 备注,
int 图书借阅次数,
int 期刊借阅次数,
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["出生日期"];
this.column有效证件 = this.Columns["有效证件"];
this.column证件号码 = this.Columns["证件号码"];
this.column联系方式 = this.Columns["联系方式"];
this.column登记日期 = this.Columns["登记日期"];
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(System.DateTime), 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(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.column登记日期);
this.column有限期至 = new DataColumn("有限期至", typeof(System.DateTime), 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(int), 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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column编号}, true));
this.column编号.AllowDBNull = false;
this.column编号.Unique = true;
this.column类型.AllowDBNull = false;
this.column是否挂失.AllowDBNull = 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 条形码 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -