📄 dataset2.cs
字号:
public dtDepartedFlightsRow AdddtDepartedFlightsRow(string TicketNo, string FltNo, System.DateTime DateOfJourney, string ClassOfRes, string Name, string EMail, int Fare, string Status, int StatusNo, string ReservedBy, System.DateTime DateOfRes, bool TicketConfirmed) {
dtDepartedFlightsRow rowdtDepartedFlightsRow = ((dtDepartedFlightsRow)(this.NewRow()));
rowdtDepartedFlightsRow.ItemArray = new object[] {
TicketNo,
FltNo,
DateOfJourney,
ClassOfRes,
Name,
EMail,
Fare,
Status,
StatusNo,
ReservedBy,
DateOfRes,
TicketConfirmed};
this.Rows.Add(rowdtDepartedFlightsRow);
return rowdtDepartedFlightsRow;
}
public dtDepartedFlightsRow FindByTicketNo(string TicketNo) {
return ((dtDepartedFlightsRow)(this.Rows.Find(new object[] {
TicketNo})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
dtDepartedFlightsDataTable cln = ((dtDepartedFlightsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
internal void InitVars() {
this.columnTicketNo = this.Columns["TicketNo"];
this.columnFltNo = this.Columns["FltNo"];
this.columnDateOfJourney = this.Columns["DateOfJourney"];
this.columnClassOfRes = this.Columns["ClassOfRes"];
this.columnName = this.Columns["Name"];
this.columnEMail = this.Columns["EMail"];
this.columnFare = this.Columns["Fare"];
this.columnStatus = this.Columns["Status"];
this.columnStatusNo = this.Columns["StatusNo"];
this.columnReservedBy = this.Columns["ReservedBy"];
this.columnDateOfRes = this.Columns["DateOfRes"];
this.columnTicketConfirmed = this.Columns["TicketConfirmed"];
}
private void InitClass() {
this.columnTicketNo = new DataColumn("TicketNo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnTicketNo);
this.columnFltNo = new DataColumn("FltNo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnFltNo);
this.columnDateOfJourney = new DataColumn("DateOfJourney", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDateOfJourney);
this.columnClassOfRes = new DataColumn("ClassOfRes", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnClassOfRes);
this.columnName = new DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnName);
this.columnEMail = new DataColumn("EMail", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnEMail);
this.columnFare = new DataColumn("Fare", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnFare);
this.columnStatus = new DataColumn("Status", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnStatus);
this.columnStatusNo = new DataColumn("StatusNo", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnStatusNo);
this.columnReservedBy = new DataColumn("ReservedBy", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnReservedBy);
this.columnDateOfRes = new DataColumn("DateOfRes", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDateOfRes);
this.columnTicketConfirmed = new DataColumn("TicketConfirmed", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnTicketConfirmed);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnTicketNo}, true));
this.columnTicketNo.AllowDBNull = false;
this.columnTicketNo.Unique = true;
this.columnFltNo.AllowDBNull = false;
this.columnDateOfJourney.AllowDBNull = false;
this.columnClassOfRes.AllowDBNull = false;
this.columnName.AllowDBNull = false;
this.columnFare.AllowDBNull = false;
this.columnStatus.AllowDBNull = false;
this.columnStatusNo.AllowDBNull = false;
this.columnReservedBy.AllowDBNull = false;
this.columnDateOfRes.AllowDBNull = false;
}
public dtDepartedFlightsRow NewdtDepartedFlightsRow() {
return ((dtDepartedFlightsRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new dtDepartedFlightsRow(builder);
}
protected override System.Type GetRowType() {
return typeof(dtDepartedFlightsRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.dtDepartedFlightsRowChanged != null)) {
this.dtDepartedFlightsRowChanged(this, new dtDepartedFlightsRowChangeEvent(((dtDepartedFlightsRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.dtDepartedFlightsRowChanging != null)) {
this.dtDepartedFlightsRowChanging(this, new dtDepartedFlightsRowChangeEvent(((dtDepartedFlightsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.dtDepartedFlightsRowDeleted != null)) {
this.dtDepartedFlightsRowDeleted(this, new dtDepartedFlightsRowChangeEvent(((dtDepartedFlightsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.dtDepartedFlightsRowDeleting != null)) {
this.dtDepartedFlightsRowDeleting(this, new dtDepartedFlightsRowChangeEvent(((dtDepartedFlightsRow)(e.Row)), e.Action));
}
}
public void RemovedtDepartedFlightsRow(dtDepartedFlightsRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class dtDepartedFlightsRow : DataRow {
private dtDepartedFlightsDataTable tabledtDepartedFlights;
internal dtDepartedFlightsRow(DataRowBuilder rb) :
base(rb) {
this.tabledtDepartedFlights = ((dtDepartedFlightsDataTable)(this.Table));
}
public string TicketNo {
get {
return ((string)(this[this.tabledtDepartedFlights.TicketNoColumn]));
}
set {
this[this.tabledtDepartedFlights.TicketNoColumn] = value;
}
}
public string FltNo {
get {
return ((string)(this[this.tabledtDepartedFlights.FltNoColumn]));
}
set {
this[this.tabledtDepartedFlights.FltNoColumn] = value;
}
}
public System.DateTime DateOfJourney {
get {
return ((System.DateTime)(this[this.tabledtDepartedFlights.DateOfJourneyColumn]));
}
set {
this[this.tabledtDepartedFlights.DateOfJourneyColumn] = value;
}
}
public string ClassOfRes {
get {
return ((string)(this[this.tabledtDepartedFlights.ClassOfResColumn]));
}
set {
this[this.tabledtDepartedFlights.ClassOfResColumn] = value;
}
}
public string Name {
get {
return ((string)(this[this.tabledtDepartedFlights.NameColumn]));
}
set {
this[this.tabledtDepartedFlights.NameColumn] = value;
}
}
public string EMail {
get {
try {
return ((string)(this[this.tabledtDepartedFlights.EMailColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tabledtDepartedFlights.EMailColumn] = value;
}
}
public int Fare {
get {
return ((int)(this[this.tabledtDepartedFlights.FareColumn]));
}
set {
this[this.tabledtDepartedFlights.FareColumn] = value;
}
}
public string Status {
get {
return ((string)(this[this.tabledtDepartedFlights.StatusColumn]));
}
set {
this[this.tabledtDepartedFlights.StatusColumn] = value;
}
}
public int StatusNo {
get {
return ((int)(this[this.tabledtDepartedFlights.StatusNoColumn]));
}
set {
this[this.tabledtDepartedFlights.StatusNoColumn] = value;
}
}
public string ReservedBy {
get {
return ((string)(this[this.tabledtDepartedFlights.ReservedByColumn]));
}
set {
this[this.tabledtDepartedFlights.ReservedByColumn] = value;
}
}
public System.DateTime DateOfRes {
get {
return ((System.DateTime)(this[this.tabledtDepartedFlights.DateOfResColumn]));
}
set {
this[this.tabledtDepartedFlights.DateOfResColumn] = value;
}
}
public bool TicketConfirmed {
get {
try {
return ((bool)(this[this.tabledtDepartedFlights.TicketConfirmedColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("Cannot get value because it is DBNull.", e);
}
}
set {
this[this.tabledtDepartedFlights.TicketConfirmedColumn] = value;
}
}
public bool IsEMailNull() {
return this.IsNull(this.tabledtDepartedFlights.EMailColumn);
}
public void SetEMailNull() {
this[this.tabledtDepartedFlights.EMailColumn] = System.Convert.DBNull;
}
public bool IsTicketConfirmedNull() {
return this.IsNull(this.tabledtDepartedFlights.TicketConfirmedColumn);
}
public void SetTicketConfirmedNull() {
this[this.tabledtDepartedFlights.TicketConfirmedColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class dtDepartedFlightsRowChangeEvent : EventArgs {
private dtDepartedFlightsRow eventRow;
private DataRowAction eventAction;
public dtDepartedFlightsRowChangeEvent(dtDepartedFlightsRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public dtDepartedFlightsRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class dtPassengerDetailsDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnEMail;
private DataColumn columnName;
private DataColumn columnFareCollected;
private DataColumn columnTotalTimesFlown;
internal dtPassengerDetailsDataTable() :
base("dtPassengerDetails") {
this.InitClass();
}
internal dtPassengerDetailsDataTable(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;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -