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