Class TicketTypeRecordDataExtensions
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the infrastructure
Inheritance
TicketTypeRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TicketTypeRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<TicketTypeTableInfo>)
From a TargetedDataRecord<TicketTypeTableInfo>, create and populate a TicketTypeRecordData POCO object
Declaration
public static TicketTypeRecordData FromRecord(this TargetedDataRecord<TicketTypeTableInfo> 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 { TicketTypeItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<TicketTypeTableInfo>)
From a TargetedSelect<TicketTypeTableInfo>, execute it and return an IEnumerable<TicketTypeRecordData> with the results
Declaration
public static IEnumerable<TicketTypeRecordData> FromSelect(this TargetedSelect<TicketTypeTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(TicketTypeRecordData)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this TicketTypeRecordData record)
Parameters
Returns
ToInserts(IEnumerable<TicketTypeRecordData>)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<TicketTypeRecordData> records)
Parameters
Returns
ToRecordData(TicketTypeRow)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the infrastructure
Declaration
public static TicketTypeRecordData ToRecordData(this TicketTypeRow row)
Parameters
Returns