Show / Hide Table of Contents

Class SourceHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SourceHeadingLinkTableInfo>)

From a TargetedDataRecord<SourceHeadingLinkTableInfo>, create and populate a SourceHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<SourceHeadingLinkTableInfo>)

From a TargetedSelect<SourceHeadingLinkTableInfo>, execute it and return an IEnumerable<SourceHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<SourceHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<SourceHeadingLinkTableInfo>, execute it and return an IEnumerable<SourceHeadingLinkRecordData> with the results

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

ToInsertAsync(SourceHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SourceHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(SourceHeadingLinkRow)

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

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