?? bluehilldataset.cs
字號(hào):
?//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2379
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace BlueHill.BlueHillWindows.SalaryManagement {
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 BlueHillDataSet : DataSet {
private tblDepartmentDataTable tabletblDepartment;
private tblEmployeeDataTable tabletblEmployee;
public BlueHillDataSet() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected BlueHillDataSet(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["tblDepartment"] != null)) {
this.Tables.Add(new tblDepartmentDataTable(ds.Tables["tblDepartment"]));
}
if ((ds.Tables["tblEmployee"] != null)) {
this.Tables.Add(new tblEmployeeDataTable(ds.Tables["tblEmployee"]));
}
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 tblDepartmentDataTable tblDepartment {
get {
return this.tabletblDepartment;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public tblEmployeeDataTable tblEmployee {
get {
return this.tabletblEmployee;
}
}
public override DataSet Clone() {
BlueHillDataSet cln = ((BlueHillDataSet)(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["tblDepartment"] != null)) {
this.Tables.Add(new tblDepartmentDataTable(ds.Tables["tblDepartment"]));
}
if ((ds.Tables["tblEmployee"] != null)) {
this.Tables.Add(new tblEmployeeDataTable(ds.Tables["tblEmployee"]));
}
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.tabletblDepartment = ((tblDepartmentDataTable)(this.Tables["tblDepartment"]));
if ((this.tabletblDepartment != null)) {
this.tabletblDepartment.InitVars();
}
this.tabletblEmployee = ((tblEmployeeDataTable)(this.Tables["tblEmployee"]));
if ((this.tabletblEmployee != null)) {
this.tabletblEmployee.InitVars();
}
}
private void InitClass() {
this.DataSetName = "BlueHillDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/BlueHillDataSet.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tabletblDepartment = new tblDepartmentDataTable();
this.Tables.Add(this.tabletblDepartment);
this.tabletblEmployee = new tblEmployeeDataTable();
this.Tables.Add(this.tabletblEmployee);
}
private bool ShouldSerializetblDepartment() {
return false;
}
private bool ShouldSerializetblEmployee() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void tblDepartmentRowChangeEventHandler(object sender, tblDepartmentRowChangeEvent e);
public delegate void tblEmployeeRowChangeEventHandler(object sender, tblEmployeeRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class tblDepartmentDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnDeptID;
private DataColumn columnDeptName;
private DataColumn columnDescription;
private DataColumn columnManagerID;
internal tblDepartmentDataTable() :
base("tblDepartment") {
this.InitClass();
}
internal tblDepartmentDataTable(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 DeptIDColumn {
get {
return this.columnDeptID;
}
}
internal DataColumn DeptNameColumn {
get {
return this.columnDeptName;
}
}
internal DataColumn DescriptionColumn {
get {
return this.columnDescription;
}
}
internal DataColumn ManagerIDColumn {
get {
return this.columnManagerID;
}
}
public tblDepartmentRow this[int index] {
get {
return ((tblDepartmentRow)(this.Rows[index]));
}
}
public event tblDepartmentRowChangeEventHandler tblDepartmentRowChanged;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowChanging;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowDeleted;
public event tblDepartmentRowChangeEventHandler tblDepartmentRowDeleting;
public void AddtblDepartmentRow(tblDepartmentRow row) {
this.Rows.Add(row);
}
public tblDepartmentRow AddtblDepartmentRow(string DeptName, string Description, int ManagerID) {
tblDepartmentRow rowtblDepartmentRow = ((tblDepartmentRow)(this.NewRow()));
rowtblDepartmentRow.ItemArray = new object[] {
null,
DeptName,
Description,
ManagerID};
this.Rows.Add(rowtblDepartmentRow);
return rowtblDepartmentRow;
}
public tblDepartmentRow FindByDeptID(int DeptID) {
return ((tblDepartmentRow)(this.Rows.Find(new object[] {
DeptID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
tblDepartmentDataTable cln = ((tblDepartmentDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new tblDepartmentDataTable();
}
internal void InitVars() {
this.columnDeptID = this.Columns["DeptID"];
this.columnDeptName = this.Columns["DeptName"];
this.columnDescription = this.Columns["Description"];
this.columnManagerID = this.Columns["ManagerID"];
}
private void InitClass() {
this.columnDeptID = new DataColumn("DeptID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDeptID);
this.columnDeptName = new DataColumn("DeptName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDeptName);
this.columnDescription = new DataColumn("Description", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDescription);
this.columnManagerID = new DataColumn("ManagerID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnManagerID);
this.Constraints.Add(new UniqueConstraint("BlueHillDataSetKey1", new DataColumn[] {
this.columnDeptID}, true));
this.columnDeptID.AutoIncrement = true;
this.columnDeptID.AllowDBNull = false;
this.columnDeptID.ReadOnly = true;
this.columnDeptID.Unique = true;
}
public tblDepartmentRow NewtblDepartmentRow() {
return ((tblDepartmentRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new tblDepartmentRow(builder);
}
protected override System.Type GetRowType() {
return typeof(tblDepartmentRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.tblDepartmentRowChanged != null)) {
this.tblDepartmentRowChanged(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.tblDepartmentRowChanging != null)) {
this.tblDepartmentRowChanging(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.tblDepartmentRowDeleted != null)) {
this.tblDepartmentRowDeleted(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.tblDepartmentRowDeleting != null)) {
this.tblDepartmentRowDeleting(this, new tblDepartmentRowChangeEvent(((tblDepartmentRow)(e.Row)), e.Action));
}
}
public void RemovetblDepartmentRow(tblDepartmentRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblDepartmentRow : DataRow {
private tblDepartmentDataTable tabletblDepartment;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -