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