📄 bookshelfdata.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace com.sungoal.MemberManage.Common {
using System;
using System.Data;
using System.Xml;
using System.Runtime.Serialization;
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Diagnostics.DebuggerStepThrough()]
[System.ComponentModel.ToolboxItem(true)]
public class BookShelfData : DataSet {
private BookShelfDataTable tableBookShelf;
private BookShelfDetailDataTable tableBookShelfDetail;
public BookShelfData() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected BookShelfData(SerializationInfo info, StreamingContext context) {
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((strSchema != null)) {
DataSet ds = new DataSet();
ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
if ((ds.Tables["BookShelf"] != null)) {
this.Tables.Add(new BookShelfDataTable(ds.Tables["BookShelf"]));
}
if ((ds.Tables["BookShelfDetail"] != null)) {
this.Tables.Add(new BookShelfDetailDataTable(ds.Tables["BookShelfDetail"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.InitClass();
}
this.GetSerializationData(info, context);
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public BookShelfDataTable BookShelf {
get {
return this.tableBookShelf;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public BookShelfDetailDataTable BookShelfDetail {
get {
return this.tableBookShelfDetail;
}
}
public override DataSet Clone() {
BookShelfData cln = ((BookShelfData)(base.Clone()));
cln.InitVars();
return cln;
}
protected override bool ShouldSerializeTables() {
return false;
}
protected override bool ShouldSerializeRelations() {
return false;
}
protected override void ReadXmlSerializable(XmlReader reader) {
this.Reset();
DataSet ds = new DataSet();
ds.ReadXml(reader);
if ((ds.Tables["BookShelf"] != null)) {
this.Tables.Add(new BookShelfDataTable(ds.Tables["BookShelf"]));
}
if ((ds.Tables["BookShelfDetail"] != null)) {
this.Tables.Add(new BookShelfDetailDataTable(ds.Tables["BookShelfDetail"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
this.InitVars();
}
protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
System.IO.MemoryStream stream = new System.IO.MemoryStream();
this.WriteXmlSchema(new XmlTextWriter(stream, null));
stream.Position = 0;
return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
}
internal void InitVars() {
this.tableBookShelf = ((BookShelfDataTable)(this.Tables["BookShelf"]));
if ((this.tableBookShelf != null)) {
this.tableBookShelf.InitVars();
}
this.tableBookShelfDetail = ((BookShelfDetailDataTable)(this.Tables["BookShelfDetail"]));
if ((this.tableBookShelfDetail != null)) {
this.tableBookShelfDetail.InitVars();
}
}
private void InitClass() {
this.DataSetName = "BookShelfData";
this.Prefix = "";
this.Namespace = "http://tempuri.org/BookShelfData.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableBookShelf = new BookShelfDataTable();
this.Tables.Add(this.tableBookShelf);
this.tableBookShelfDetail = new BookShelfDetailDataTable();
this.Tables.Add(this.tableBookShelfDetail);
}
private bool ShouldSerializeBookShelf() {
return false;
}
private bool ShouldSerializeBookShelfDetail() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void BookShelfRowChangeEventHandler(object sender, BookShelfRowChangeEvent e);
public delegate void BookShelfDetailRowChangeEventHandler(object sender, BookShelfDetailRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class BookShelfDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnBookShelfID;
private DataColumn columnUserID;
private DataColumn columnBookShelfName;
private DataColumn columnPBookShelfID;
private DataColumn columnIsLeaf;
private DataColumn columnReamrk;
internal BookShelfDataTable() :
base("BookShelf") {
this.InitClass();
}
internal BookShelfDataTable(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 BookShelfIDColumn {
get {
return this.columnBookShelfID;
}
}
internal DataColumn UserIDColumn {
get {
return this.columnUserID;
}
}
internal DataColumn BookShelfNameColumn {
get {
return this.columnBookShelfName;
}
}
internal DataColumn PBookShelfIDColumn {
get {
return this.columnPBookShelfID;
}
}
internal DataColumn IsLeafColumn {
get {
return this.columnIsLeaf;
}
}
internal DataColumn ReamrkColumn {
get {
return this.columnReamrk;
}
}
public BookShelfRow this[int index] {
get {
return ((BookShelfRow)(this.Rows[index]));
}
}
public event BookShelfRowChangeEventHandler BookShelfRowChanged;
public event BookShelfRowChangeEventHandler BookShelfRowChanging;
public event BookShelfRowChangeEventHandler BookShelfRowDeleted;
public event BookShelfRowChangeEventHandler BookShelfRowDeleting;
public void AddBookShelfRow(BookShelfRow row) {
this.Rows.Add(row);
}
public BookShelfRow AddBookShelfRow(string BookShelfID, string UserID, string BookShelfName, string PBookShelfID, string IsLeaf, string Reamrk) {
BookShelfRow rowBookShelfRow = ((BookShelfRow)(this.NewRow()));
rowBookShelfRow.ItemArray = new object[] {
BookShelfID,
UserID,
BookShelfName,
PBookShelfID,
IsLeaf,
Reamrk};
this.Rows.Add(rowBookShelfRow);
return rowBookShelfRow;
}
public BookShelfRow FindByBookShelfID(string BookShelfID) {
return ((BookShelfRow)(this.Rows.Find(new object[] {
BookShelfID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
BookShelfDataTable cln = ((BookShelfDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new BookShelfDataTable();
}
internal void InitVars() {
this.columnBookShelfID = this.Columns["BookShelfID"];
this.columnUserID = this.Columns["UserID"];
this.columnBookShelfName = this.Columns["BookShelfName"];
this.columnPBookShelfID = this.Columns["PBookShelfID"];
this.columnIsLeaf = this.Columns["IsLeaf"];
this.columnReamrk = this.Columns["Reamrk"];
}
private void InitClass() {
this.columnBookShelfID = new DataColumn("BookShelfID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnBookShelfID);
this.columnUserID = new DataColumn("UserID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnUserID);
this.columnBookShelfName = new DataColumn("BookShelfName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnBookShelfName);
this.columnPBookShelfID = new DataColumn("PBookShelfID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPBookShelfID);
this.columnIsLeaf = new DataColumn("IsLeaf", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIsLeaf);
this.columnReamrk = new DataColumn("Reamrk", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnReamrk);
this.Constraints.Add(new UniqueConstraint("BookShelfDataKey1", new DataColumn[] {
this.columnBookShelfID}, true));
this.columnBookShelfID.AllowDBNull = false;
this.columnBookShelfID.Unique = true;
this.columnUserID.AllowDBNull = false;
this.columnBookShelfName.AllowDBNull = false;
}
public BookShelfRow NewBookShelfRow() {
return ((BookShelfRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new BookShelfRow(builder);
}
protected override System.Type GetRowType() {
return typeof(BookShelfRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.BookShelfRowChanged != null)) {
this.BookShelfRowChanged(this, new BookShelfRowChangeEvent(((BookShelfRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.BookShelfRowChanging != null)) {
this.BookShelfRowChanging(this, new BookShelfRowChangeEvent(((BookShelfRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.BookShelfRowDeleted != null)) {
this.BookShelfRowDeleted(this, new BookShelfRowChangeEvent(((BookShelfRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.BookShelfRowDeleting != null)) {
this.BookShelfRowDeleting(this, new BookShelfRowChangeEvent(((BookShelfRow)(e.Row)), e.Action));
}
}
public void RemoveBookShelfRow(BookShelfRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BookShelfRow : DataRow {
private BookShelfDataTable tableBookShelf;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -