Class TicketAlertRecordDataExtensions
Extension methods to make it easy to fetch TicketAlertRecordData objects from the database,
using the infrastructure
Inheritance
TicketAlertRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TicketAlertRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<TicketAlertTableInfo>)
Declaration
public static TicketAlertRecordData FromRecord(this TargetedDataRecord<TicketAlertTableInfo> record)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { TicketAlertItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TicketAlertTableInfo>)
From a TargetedSelect<TicketAlertTableInfo>, execute it and return an IEnumerable<TicketAlertRecordData> with the results
Declaration
public static IEnumerable<TicketAlertRecordData> FromSelect(this TargetedSelect<TicketAlertTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(TicketAlertRecordData)
Extension methods to make it easy to fetch TicketAlertRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this TicketAlertRecordData record)
Parameters
Returns
ToInserts(IEnumerable<TicketAlertRecordData>)
Extension methods to make it easy to fetch TicketAlertRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<TicketAlertRecordData> records)
Parameters
Returns
ToRecordData(TicketAlertRow)
Extension methods to make it easy to fetch TicketAlertRecordData objects from the database,
using the infrastructure
Declaration
public static TicketAlertRecordData ToRecordData(this TicketAlertRow row)
Parameters
Returns