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