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