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