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