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