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