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