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