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