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