Class TicketTypeRecordDataExtensions
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
TicketTypeRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class TicketTypeRecordDataExtensions
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();
FromSelectAsync(TargetedSelect<TicketTypeTableInfo>, CancellationToken)
From a TargetedSelect<TicketTypeTableInfo>, execute it and return an IEnumerable<TicketTypeRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TicketTypeRecordData> FromSelectAsync(this TargetedSelect<TicketTypeTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(TicketTypeRecordData, CancellationToken)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this TicketTypeRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<TicketTypeRecordData>, CancellationToken)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TicketTypeRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(TicketTypeRow)
Extension methods to make it easy to fetch TicketTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static TicketTypeRecordData ToRecordData(this TicketTypeRow row)
Parameters
Returns