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