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