Show / Hide Table of Contents

Class TaskHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TaskHeadingLinkTableInfo>)

From a TargetedDataRecord<TaskHeadingLinkTableInfo>, create and populate a TaskHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<TaskHeadingLinkTableInfo>)

From a TargetedSelect<TaskHeadingLinkTableInfo>, execute it and return an IEnumerable<TaskHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<TaskHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<TaskHeadingLinkTableInfo>, execute it and return an IEnumerable<TaskHeadingLinkRecordData> with the results

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

ToInsertAsync(TaskHeadingLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<TaskHeadingLinkRecordData>, CancellationToken)

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

ToRecordData(TaskHeadingLinkRow)

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