Show / Hide Table of Contents

Class IntentHeadingLinkRecordDataExtensions

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

Inheritance
object
IntentHeadingLinkRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class IntentHeadingLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<IntentHeadingLinkTableInfo>)

From a TargetedDataRecord<IntentHeadingLinkTableInfo>, create and populate a IntentHeadingLinkRecordData POCO object

Declaration
public static IntentHeadingLinkRecordData FromRecord(this TargetedDataRecord<IntentHeadingLinkTableInfo> record)
Parameters
Type Name Description
TargetedDataRecordIntentHeadingLinkTableInfo record
Returns
Type Description
IntentHeadingLinkRecordData
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 { IntentHeadingLinkItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<IntentHeadingLinkTableInfo>)

From a TargetedSelect<IntentHeadingLinkTableInfo>, execute it and return an IEnumerable<IntentHeadingLinkRecordData> with the results

Declaration
public static IEnumerable<IntentHeadingLinkRecordData> FromSelect(this TargetedSelect<IntentHeadingLinkTableInfo> select)
Parameters
Type Name Description
TargetedSelectIntentHeadingLinkTableInfo select
Returns
Type Description
IEnumerableIntentHeadingLinkRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<IntentHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<IntentHeadingLinkTableInfo>, execute it and return an IEnumerable<IntentHeadingLinkRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<IntentHeadingLinkRecordData> FromSelectAsync(this TargetedSelect<IntentHeadingLinkTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelectIntentHeadingLinkTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableIntentHeadingLinkRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(IntentHeadingLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<IntentHeadingLinkRecordData>, CancellationToken)

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

ToRecordData(IntentHeadingLinkRow)

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