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