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