Show / Hide Table of Contents

Class AudienceLayoutLinkRecordDataExtensions

Extension methods to make it easy to fetch AudienceLayoutLinkRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
AudienceLayoutLinkRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class AudienceLayoutLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AudienceLayoutLinkTableInfo>)

From a TargetedDataRecord<AudienceLayoutLinkTableInfo>, create and populate a AudienceLayoutLinkRecordData POCO object

Declaration
public static AudienceLayoutLinkRecordData FromRecord(this TargetedDataRecord<AudienceLayoutLinkTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<AudienceLayoutLinkTableInfo> record
Returns
Type Description
AudienceLayoutLinkRecordData
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
Type Name Description
TargetedSelect<AudienceLayoutLinkTableInfo> select
Returns
Type Description
IEnumerable<AudienceLayoutLinkRecordData>
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
Type Name Description
TargetedSelect<AudienceLayoutLinkTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<AudienceLayoutLinkRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(AudienceLayoutLinkRecordData, CancellationToken)

Extension methods to make it easy to fetch AudienceLayoutLinkRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static Task<Insert> ToInsertAsync(this AudienceLayoutLinkRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
AudienceLayoutLinkRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<AudienceLayoutLinkRecordData>, CancellationToken)

Extension methods to make it easy to fetch AudienceLayoutLinkRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<AudienceLayoutLinkRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<AudienceLayoutLinkRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(AudienceLayoutLinkRow)

Extension methods to make it easy to fetch AudienceLayoutLinkRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static AudienceLayoutLinkRecordData ToRecordData(this AudienceLayoutLinkRow row)
Parameters
Type Name Description
AudienceLayoutLinkRow row
Returns
Type Description
AudienceLayoutLinkRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top