?? dataset1.cs
字號:
}
}
internal DataColumn 準(zhǔn)考證號Column {
get {
return this.column準(zhǔn)考證號;
}
}
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 vstudentRow this[int index] {
get {
return ((vstudentRow)(this.Rows[index]));
}
}
public event vstudentRowChangeEventHandler vstudentRowChanged;
public event vstudentRowChangeEventHandler vstudentRowChanging;
public event vstudentRowChangeEventHandler vstudentRowDeleted;
public event vstudentRowChangeEventHandler vstudentRowDeleting;
public void AddvstudentRow(vstudentRow row) {
this.Rows.Add(row);
}
public vstudentRow AddvstudentRow(string 準(zhǔn)考證號, string 姓名, string 性別, string 生日, string 地址, string 身份證, string 電話) {
vstudentRow rowvstudentRow = ((vstudentRow)(this.NewRow()));
rowvstudentRow.ItemArray = new object[] {
準(zhǔn)考證號,
姓名,
性別,
生日,
地址,
身份證,
電話};
this.Rows.Add(rowvstudentRow);
return rowvstudentRow;
}
public vstudentRow FindBy準(zhǔn)考證號(string 準(zhǔn)考證號) {
return ((vstudentRow)(this.Rows.Find(new object[] {
準(zhǔn)考證號})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
vstudentDataTable cln = ((vstudentDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new vstudentDataTable();
}
internal void InitVars() {
this.column準(zhǔn)考證號 = this.Columns["準(zhǔn)考證號"];
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準(zhǔn)考證號 = new DataColumn("準(zhǔn)考證號", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column準(zhǔn)考證號);
this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column姓名);
this.column性別 = new DataColumn("性別", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column性別);
this.column生日 = new DataColumn("生日", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column生日);
this.column地址 = new DataColumn("地址", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column地址);
this.column身份證 = new DataColumn("身份證", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column身份證);
this.column電話 = new DataColumn("電話", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column電話);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column準(zhǔn)考證號}, true));
this.column準(zhǔn)考證號.AllowDBNull = false;
this.column準(zhǔn)考證號.Unique = true;
this.column姓名.AllowDBNull = false;
this.column性別.AllowDBNull = false;
this.column身份證.AllowDBNull = false;
}
public vstudentRow NewvstudentRow() {
return ((vstudentRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new vstudentRow(builder);
}
protected override System.Type GetRowType() {
return typeof(vstudentRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.vstudentRowChanged != null)) {
this.vstudentRowChanged(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.vstudentRowChanging != null)) {
this.vstudentRowChanging(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.vstudentRowDeleted != null)) {
this.vstudentRowDeleted(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.vstudentRowDeleting != null)) {
this.vstudentRowDeleting(this, new vstudentRowChangeEvent(((vstudentRow)(e.Row)), e.Action));
}
}
public void RemovevstudentRow(vstudentRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class vstudentRow : DataRow {
private vstudentDataTable tablevstudent;
internal vstudentRow(DataRowBuilder rb) :
base(rb) {
this.tablevstudent = ((vstudentDataTable)(this.Table));
}
public string 準(zhǔn)考證號 {
get {
return ((string)(this[this.tablevstudent.準(zhǔn)考證號Column]));
}
set {
this[this.tablevstudent.準(zhǔn)考證號Column] = value;
}
}
public string 姓名 {
get {
return ((string)(this[this.tablevstudent.姓名Column]));
}
set {
this[this.tablevstudent.姓名Column] = value;
}
}
public string 性別 {
get {
return ((string)(this[this.tablevstudent.性別Column]));
}
set {
this[this.tablevstudent.性別Column] = value;
}
}
public string 生日 {
get {
try {
return ((string)(this[this.tablevstudent.生日Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因?yàn)樗?DBNull。", e);
}
}
set {
this[this.tablevstudent.生日Column] = value;
}
}
public string 地址 {
get {
try {
return ((string)(this[this.tablevstudent.地址Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因?yàn)樗?DBNull。", e);
}
}
set {
this[this.tablevstudent.地址Column] = value;
}
}
public string 身份證 {
get {
return ((string)(this[this.tablevstudent.身份證Column]));
}
set {
this[this.tablevstudent.身份證Column] = value;
}
}
public string 電話 {
get {
try {
return ((string)(this[this.tablevstudent.電話Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因?yàn)樗?DBNull。", e);
}
}
set {
this[this.tablevstudent.電話Column] = value;
}
}
public bool Is生日Null() {
return this.IsNull(this.tablevstudent.生日Column);
}
public void Set生日Null() {
this[this.tablevstudent.生日Column] = System.Convert.DBNull;
}
public bool Is地址Null() {
return this.IsNull(this.tablevstudent.地址Column);
}
public void Set地址Null() {
this[this.tablevstudent.地址Column] = System.Convert.DBNull;
}
public bool Is電話Null() {
return this.IsNull(this.tablevstudent.電話Column);
}
public void Set電話Null() {
this[this.tablevstudent.電話Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class vstudentRowChangeEvent : EventArgs {
private vstudentRow eventRow;
private DataRowAction eventAction;
public vstudentRowChangeEvent(vstudentRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public vstudentRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class _TableDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column準(zhǔn)考證號;
private DataColumn column姓名;
private DataColumn column英語;
private DataColumn column語文;
private DataColumn column政治;
private DataColumn column總分;
internal _TableDataTable() :
base("Table") {
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -