Show / Hide Table of Contents

Class ReasonSoldHeadingLinkRecordDataExtensions

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

Inheritance
object
ReasonSoldHeadingLinkRecordDataExtensions
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 ReasonSoldHeadingLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ReasonSoldHeadingLinkTableInfo>)

From a TargetedDataRecord<ReasonSoldHeadingLinkTableInfo>, create and populate a ReasonSoldHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<ReasonSoldHeadingLinkTableInfo>)

From a TargetedSelect<ReasonSoldHeadingLinkTableInfo>, execute it and return an IEnumerable<ReasonSoldHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ReasonSoldHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<ReasonSoldHeadingLinkTableInfo>, execute it and return an IEnumerable<ReasonSoldHeadingLinkRecordData> with the results

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

ToInsertAsync(ReasonSoldHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ReasonSoldHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(ReasonSoldHeadingLinkRow)

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

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