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