📄 outbox.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 JB.GraduateDesign.ESM.Entity {
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 OutBoxData : DataSet {
private OutBoxDataTable tableOutBox;
private OutBoxDetailDataTable tableOutBoxDetail;
private DataRelation relationOutBox_OutBoxDetail;
public OutBoxData() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected OutBoxData(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["OutBox"] != null)) {
this.Tables.Add(new OutBoxDataTable(ds.Tables["OutBox"]));
}
if ((ds.Tables["OutBoxDetail"] != null)) {
this.Tables.Add(new OutBoxDetailDataTable(ds.Tables["OutBoxDetail"]));
}
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 OutBoxDataTable OutBox {
get {
return this.tableOutBox;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public OutBoxDetailDataTable OutBoxDetail {
get {
return this.tableOutBoxDetail;
}
}
public override DataSet Clone() {
OutBoxData cln = ((OutBoxData)(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["OutBox"] != null)) {
this.Tables.Add(new OutBoxDataTable(ds.Tables["OutBox"]));
}
if ((ds.Tables["OutBoxDetail"] != null)) {
this.Tables.Add(new OutBoxDetailDataTable(ds.Tables["OutBoxDetail"]));
}
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.tableOutBox = ((OutBoxDataTable)(this.Tables["OutBox"]));
if ((this.tableOutBox != null)) {
this.tableOutBox.InitVars();
}
this.tableOutBoxDetail = ((OutBoxDetailDataTable)(this.Tables["OutBoxDetail"]));
if ((this.tableOutBoxDetail != null)) {
this.tableOutBoxDetail.InitVars();
}
this.relationOutBox_OutBoxDetail = this.Relations["OutBox_OutBoxDetail"];
}
private void InitClass() {
this.DataSetName = "OutBoxData";
this.Prefix = "";
this.Namespace = "http://tempuri.org/OutBox.xsd";
this.Locale = new System.Globalization.CultureInfo("zh-CN");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableOutBox = new OutBoxDataTable();
this.Tables.Add(this.tableOutBox);
this.tableOutBoxDetail = new OutBoxDetailDataTable();
this.Tables.Add(this.tableOutBoxDetail);
ForeignKeyConstraint fkc;
fkc = new ForeignKeyConstraint("OutBox_OutBoxDetail", new DataColumn[] {
this.tableOutBox.OutBox_IdColumn}, new DataColumn[] {
this.tableOutBoxDetail.OutBox_IdColumn});
this.tableOutBoxDetail.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
this.relationOutBox_OutBoxDetail = new DataRelation("OutBox_OutBoxDetail", new DataColumn[] {
this.tableOutBox.OutBox_IdColumn}, new DataColumn[] {
this.tableOutBoxDetail.OutBox_IdColumn}, false);
this.relationOutBox_OutBoxDetail.Nested = true;
this.Relations.Add(this.relationOutBox_OutBoxDetail);
}
private bool ShouldSerializeOutBox() {
return false;
}
private bool ShouldSerializeOutBoxDetail() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void OutBoxRowChangeEventHandler(object sender, OutBoxRowChangeEvent e);
public delegate void OutBoxDetailRowChangeEventHandler(object sender, OutBoxDetailRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class OutBoxDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnOutBoxId;
private DataColumn columnSendUserId;
private DataColumn columnSendTime;
private DataColumn columnMessage;
private DataColumn columnStatus;
private DataColumn columnType;
private DataColumn columnOutBox_Id;
internal OutBoxDataTable() :
base("OutBox") {
this.InitClass();
}
internal OutBoxDataTable(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 OutBoxIdColumn {
get {
return this.columnOutBoxId;
}
}
internal DataColumn SendUserIdColumn {
get {
return this.columnSendUserId;
}
}
internal DataColumn SendTimeColumn {
get {
return this.columnSendTime;
}
}
internal DataColumn MessageColumn {
get {
return this.columnMessage;
}
}
internal DataColumn StatusColumn {
get {
return this.columnStatus;
}
}
internal DataColumn TypeColumn {
get {
return this.columnType;
}
}
internal DataColumn OutBox_IdColumn {
get {
return this.columnOutBox_Id;
}
}
public OutBoxRow this[int index] {
get {
return ((OutBoxRow)(this.Rows[index]));
}
}
public event OutBoxRowChangeEventHandler OutBoxRowChanged;
public event OutBoxRowChangeEventHandler OutBoxRowChanging;
public event OutBoxRowChangeEventHandler OutBoxRowDeleted;
public event OutBoxRowChangeEventHandler OutBoxRowDeleting;
public void AddOutBoxRow(OutBoxRow row) {
this.Rows.Add(row);
}
public OutBoxRow AddOutBoxRow(int SendUserId, System.DateTime SendTime, string Message, int Status, int Type) {
OutBoxRow rowOutBoxRow = ((OutBoxRow)(this.NewRow()));
rowOutBoxRow.ItemArray = new object[] {
null,
SendUserId,
SendTime,
Message,
Status,
Type,
null};
this.Rows.Add(rowOutBoxRow);
return rowOutBoxRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
OutBoxDataTable cln = ((OutBoxDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new OutBoxDataTable();
}
internal void InitVars() {
this.columnOutBoxId = this.Columns["OutBoxId"];
this.columnSendUserId = this.Columns["SendUserId"];
this.columnSendTime = this.Columns["SendTime"];
this.columnMessage = this.Columns["Message"];
this.columnStatus = this.Columns["Status"];
this.columnType = this.Columns["Type"];
this.columnOutBox_Id = this.Columns["OutBox_Id"];
}
private void InitClass() {
this.columnOutBoxId = new DataColumn("OutBoxId", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOutBoxId);
this.columnSendUserId = new DataColumn("SendUserId", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnSendUserId);
this.columnSendTime = new DataColumn("SendTime", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnSendTime);
this.columnMessage = new DataColumn("Message", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnMessage);
this.columnStatus = new DataColumn("Status", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnStatus);
this.columnType = new DataColumn("Type", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnType);
this.columnOutBox_Id = new DataColumn("OutBox_Id", typeof(int), null, System.Data.MappingType.Hidden);
this.Columns.Add(this.columnOutBox_Id);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnOutBox_Id}, true));
this.columnOutBoxId.AutoIncrement = true;
this.columnOutBoxId.AllowDBNull = false;
this.columnOutBoxId.ReadOnly = true;
this.columnSendUserId.AllowDBNull = false;
this.columnSendTime.AllowDBNull = false;
this.columnMessage.AllowDBNull = false;
this.columnStatus.AllowDBNull = false;
this.columnType.AllowDBNull = false;
this.columnOutBox_Id.AutoIncrement = true;
this.columnOutBox_Id.AllowDBNull = false;
this.columnOutBox_Id.Unique = true;
}
public OutBoxRow NewOutBoxRow() {
return ((OutBoxRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new OutBoxRow(builder);
}
protected override System.Type GetRowType() {
return typeof(OutBoxRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.OutBoxRowChanged != null)) {
this.OutBoxRowChanged(this, new OutBoxRowChangeEvent(((OutBoxRow)(e.Row)), e.Action));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -