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