Show / Hide Table of Contents

Class RejectReasonHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<RejectReasonHeadingLinkTableInfo>)

From a TargetedDataRecord<RejectReasonHeadingLinkTableInfo>, create and populate a RejectReasonHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<RejectReasonHeadingLinkTableInfo>)

From a TargetedSelect<RejectReasonHeadingLinkTableInfo>, execute it and return an IEnumerable<RejectReasonHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<RejectReasonHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<RejectReasonHeadingLinkTableInfo>, execute it and return an IEnumerable<RejectReasonHeadingLinkRecordData> with the results

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

ToInsertAsync(RejectReasonHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<RejectReasonHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(RejectReasonHeadingLinkRow)

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

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