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