📄 dataset1.cs
字号:
this.columnmemo = this.Columns["memo"];
}
private void InitClass() {
this.columnindex = new DataColumn("index", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnindex);
this.columnbno = new DataColumn("bno", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnbno);
this.columnrno = new DataColumn("rno", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnrno);
this.columnarea = new DataColumn("area", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnarea);
this.columnSeatNum = new DataColumn("SeatNum", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnSeatNum);
this.columnunit = new DataColumn("unit", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnunit);
this.column_using = new DataColumn("using", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.column_using);
this.columnwater = new DataColumn("water", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnwater);
this.columnelec = new DataColumn("elec", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnelec);
this.columnnet = new DataColumn("net", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnnet);
this.columnphone = new DataColumn("phone", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnphone);
this.columncharge = new DataColumn("charge", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncharge);
this.columnUsed = new DataColumn("Used", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnUsed);
this.columnsex = new DataColumn("sex", typeof(System.Byte), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnsex);
this.columnmemo = new DataColumn("memo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnmemo);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnindex}, true));
this.columnindex.AutoIncrement = true;
this.columnindex.AllowDBNull = false;
this.columnindex.ReadOnly = true;
this.columnindex.Unique = true;
this.columnbno.AllowDBNull = false;
this.columnrno.AllowDBNull = false;
this.column_using.AllowDBNull = false;
this.columnwater.AllowDBNull = false;
this.columnelec.AllowDBNull = false;
this.columnnet.AllowDBNull = false;
this.columnsex.AllowDBNull = false;
}
public RoomInfoRow NewRoomInfoRow() {
return ((RoomInfoRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new RoomInfoRow(builder);
}
protected override System.Type GetRowType() {
return typeof(RoomInfoRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.RoomInfoRowChanged != null)) {
this.RoomInfoRowChanged(this, new RoomInfoRowChangeEvent(((RoomInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.RoomInfoRowChanging != null)) {
this.RoomInfoRowChanging(this, new RoomInfoRowChangeEvent(((RoomInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.RoomInfoRowDeleted != null)) {
this.RoomInfoRowDeleted(this, new RoomInfoRowChangeEvent(((RoomInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.RoomInfoRowDeleting != null)) {
this.RoomInfoRowDeleting(this, new RoomInfoRowChangeEvent(((RoomInfoRow)(e.Row)), e.Action));
}
}
public void RemoveRoomInfoRow(RoomInfoRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class RoomInfoRow : DataRow {
private RoomInfoDataTable tableRoomInfo;
internal RoomInfoRow(DataRowBuilder rb) :
base(rb) {
this.tableRoomInfo = ((RoomInfoDataTable)(this.Table));
}
public int index {
get {
return ((int)(this[this.tableRoomInfo.indexColumn]));
}
set {
this[this.tableRoomInfo.indexColumn] = value;
}
}
public string bno {
get {
return ((string)(this[this.tableRoomInfo.bnoColumn]));
}
set {
this[this.tableRoomInfo.bnoColumn] = value;
}
}
public string rno {
get {
return ((string)(this[this.tableRoomInfo.rnoColumn]));
}
set {
this[this.tableRoomInfo.rnoColumn] = value;
}
}
public int area {
get {
try {
return ((int)(this[this.tableRoomInfo.areaColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.areaColumn] = value;
}
}
public int SeatNum {
get {
try {
return ((int)(this[this.tableRoomInfo.SeatNumColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.SeatNumColumn] = value;
}
}
public string unit {
get {
try {
return ((string)(this[this.tableRoomInfo.unitColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.unitColumn] = value;
}
}
public System.Byte _using {
get {
return ((System.Byte)(this[this.tableRoomInfo._usingColumn]));
}
set {
this[this.tableRoomInfo._usingColumn] = value;
}
}
public System.Byte water {
get {
return ((System.Byte)(this[this.tableRoomInfo.waterColumn]));
}
set {
this[this.tableRoomInfo.waterColumn] = value;
}
}
public System.Byte elec {
get {
return ((System.Byte)(this[this.tableRoomInfo.elecColumn]));
}
set {
this[this.tableRoomInfo.elecColumn] = value;
}
}
public System.Byte net {
get {
return ((System.Byte)(this[this.tableRoomInfo.netColumn]));
}
set {
this[this.tableRoomInfo.netColumn] = value;
}
}
public System.Byte phone {
get {
try {
return ((System.Byte)(this[this.tableRoomInfo.phoneColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.phoneColumn] = value;
}
}
public string charge {
get {
try {
return ((string)(this[this.tableRoomInfo.chargeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.chargeColumn] = value;
}
}
public bool Used {
get {
try {
return ((bool)(this[this.tableRoomInfo.UsedColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.UsedColumn] = value;
}
}
public System.Byte sex {
get {
return ((System.Byte)(this[this.tableRoomInfo.sexColumn]));
}
set {
this[this.tableRoomInfo.sexColumn] = value;
}
}
public string memo {
get {
try {
return ((string)(this[this.tableRoomInfo.memoColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableRoomInfo.memoColumn] = value;
}
}
public bool IsareaNull() {
return this.IsNull(this.tableRoomInfo.areaColumn);
}
public void SetareaNull() {
this[this.tableRoomInfo.areaColumn] = System.Convert.DBNull;
}
public bool IsSeatNumNull() {
return this.IsNull(this.tableRoomInfo.SeatNumColumn);
}
public void SetSeatNumNull() {
this[this.tableRoomInfo.SeatNumColumn] = System.Convert.DBNull;
}
public bool IsunitNull() {
return this.IsNull(this.tableRoomInfo.unitColumn);
}
public void SetunitNull() {
this[this.tableRoomInfo.unitColumn] = System.Convert.DBNull;
}
public bool IsphoneNull() {
return this.IsNull(this.tableRoomInfo.phoneColumn);
}
public void SetphoneNull() {
this[this.tableRoomInfo.phoneColumn] = System.Convert.DBNull;
}
public bool IschargeNull() {
return this.IsNull(this.tableRoomInfo.chargeColumn);
}
public void SetchargeNull() {
this[this.tableRoomInfo.chargeColumn] = System.Convert.DBNull;
}
public bool IsUsedNull() {
return this.IsNull(this.tableRoomInfo.UsedColumn);
}
public void SetUsedNull() {
this[this.tableRoomInfo.UsedColumn] = System.Convert.DBNull;
}
public bool IsmemoNull() {
return this.IsNull(this.tableRoomInfo.memoColumn);
}
public void SetmemoNull() {
this[this.tableRoomInfo.memoColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class RoomInfoRowChangeEvent : EventArgs {
private RoomInfoRow eventRow;
private DataRowAction eventAction;
public RoomInfoRowChangeEvent(RoomInfoRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public RoomInfoRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -