Show / Hide Table of Contents

Class ReasonSoldGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ReasonSoldGroupLinkTableInfo>)

From a TargetedDataRecord<ReasonSoldGroupLinkTableInfo>, create and populate a ReasonSoldGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<ReasonSoldGroupLinkTableInfo>)

From a TargetedSelect<ReasonSoldGroupLinkTableInfo>, execute it and return an IEnumerable<ReasonSoldGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ReasonSoldGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<ReasonSoldGroupLinkTableInfo>, execute it and return an IEnumerable<ReasonSoldGroupLinkRecordData> with the results

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

ToInsertAsync(ReasonSoldGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ReasonSoldGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(ReasonSoldGroupLinkRow)

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

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