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