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