📄 teacher.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 教师签到系统 {
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 Teacher : DataSet {
private 教师信息DataTable table教师信息;
public Teacher() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected Teacher(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["教师信息"] != null)) {
this.Tables.Add(new 教师信息DataTable(ds.Tables["教师信息"]));
}
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 教师信息DataTable 教师信息 {
get {
return this.table教师信息;
}
}
public override DataSet Clone() {
Teacher cln = ((Teacher)(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["教师信息"] != null)) {
this.Tables.Add(new 教师信息DataTable(ds.Tables["教师信息"]));
}
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.table教师信息 = ((教师信息DataTable)(this.Tables["教师信息"]));
if ((this.table教师信息 != null)) {
this.table教师信息.InitVars();
}
}
private void InitClass() {
this.DataSetName = "Teacher";
this.Prefix = "";
this.Namespace = "http://www.tempuri.org/Teacher.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.table教师信息 = new 教师信息DataTable();
this.Tables.Add(this.table教师信息);
}
private bool ShouldSerialize教师信息() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void 教师信息RowChangeEventHandler(object sender, 教师信息RowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class 教师信息DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column教师编号;
private DataColumn column姓名;
private DataColumn column年龄;
private DataColumn column性别;
private DataColumn column民族;
private DataColumn column政治面貌;
private DataColumn column职称;
private DataColumn column学历;
private DataColumn column家庭地址;
private DataColumn column联系电话;
internal 教师信息DataTable() :
base("教师信息") {
this.InitClass();
}
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联系电话;
}
}
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 姓名, int 年龄, string 性别, string 民族, string 政治面貌, string 职称, string 学历, string 家庭地址, string 联系电话) {
教师信息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["联系电话"];
}
private void InitClass() {
this.column教师编号 = new DataColumn("教师编号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column教师编号);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -