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