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