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