?? dsoper.cs
字號(hào):
?//------------------------------------------------------------------------------
// <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 DataServer {
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 DSOper : DataSet {
private operDataTable tableoper;
public DSOper() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected DSOper(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["oper"] != null)) {
this.Tables.Add(new operDataTable(ds.Tables["oper"]));
}
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 operDataTable oper {
get {
return this.tableoper;
}
}
public override DataSet Clone() {
DSOper cln = ((DSOper)(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["oper"] != null)) {
this.Tables.Add(new operDataTable(ds.Tables["oper"]));
}
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.tableoper = ((operDataTable)(this.Tables["oper"]));
if ((this.tableoper != null)) {
this.tableoper.InitVars();
}
}
private void InitClass() {
this.DataSetName = "DSOper";
this.Prefix = "";
this.Namespace = "http://tempuri.org/DSOper.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableoper = new operDataTable();
this.Tables.Add(this.tableoper);
}
private bool ShouldSerializeoper() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void operRowChangeEventHandler(object sender, operRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class operDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnoper_code;
private DataColumn columnoper_name;
internal operDataTable() :
base("oper") {
this.InitClass();
}
internal operDataTable(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 oper_codeColumn {
get {
return this.columnoper_code;
}
}
internal DataColumn oper_nameColumn {
get {
return this.columnoper_name;
}
}
public operRow this[int index] {
get {
return ((operRow)(this.Rows[index]));
}
}
public event operRowChangeEventHandler operRowChanged;
public event operRowChangeEventHandler operRowChanging;
public event operRowChangeEventHandler operRowDeleted;
public event operRowChangeEventHandler operRowDeleting;
public void AddoperRow(operRow row) {
this.Rows.Add(row);
}
public operRow AddoperRow(string oper_code, string oper_name) {
operRow rowoperRow = ((operRow)(this.NewRow()));
rowoperRow.ItemArray = new object[] {
oper_code,
oper_name};
this.Rows.Add(rowoperRow);
return rowoperRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
operDataTable cln = ((operDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new operDataTable();
}
internal void InitVars() {
this.columnoper_code = this.Columns["oper_code"];
this.columnoper_name = this.Columns["oper_name"];
}
private void InitClass() {
this.columnoper_code = new DataColumn("oper_code", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnoper_code);
this.columnoper_name = new DataColumn("oper_name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnoper_name);
}
public operRow NewoperRow() {
return ((operRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new operRow(builder);
}
protected override System.Type GetRowType() {
return typeof(operRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.operRowChanged != null)) {
this.operRowChanged(this, new operRowChangeEvent(((operRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.operRowChanging != null)) {
this.operRowChanging(this, new operRowChangeEvent(((operRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.operRowDeleted != null)) {
this.operRowDeleted(this, new operRowChangeEvent(((operRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.operRowDeleting != null)) {
this.operRowDeleting(this, new operRowChangeEvent(((operRow)(e.Row)), e.Action));
}
}
public void RemoveoperRow(operRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class operRow : DataRow {
private operDataTable tableoper;
internal operRow(DataRowBuilder rb) :
base(rb) {
this.tableoper = ((operDataTable)(this.Table));
}
public string oper_code {
get {
try {
return ((string)(this[this.tableoper.oper_codeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無(wú)法獲取值,因?yàn)樗?DBNull。", e);
}
}
set {
this[this.tableoper.oper_codeColumn] = value;
}
}
public string oper_name {
get {
try {
return ((string)(this[this.tableoper.oper_nameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無(wú)法獲取值,因?yàn)樗?DBNull。", e);
}
}
set {
this[this.tableoper.oper_nameColumn] = value;
}
}
public bool Isoper_codeNull() {
return this.IsNull(this.tableoper.oper_codeColumn);
}
public void Setoper_codeNull() {
this[this.tableoper.oper_codeColumn] = System.Convert.DBNull;
}
public bool Isoper_nameNull() {
return this.IsNull(this.tableoper.oper_nameColumn);
}
public void Setoper_nameNull() {
this[this.tableoper.oper_nameColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class operRowChangeEvent : EventArgs {
private operRow eventRow;
private DataRowAction eventAction;
public operRowChangeEvent(operRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public operRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -