Show / Hide Table of Contents

Class TaskGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TaskGroupLinkTableInfo>)

From a TargetedDataRecord<TaskGroupLinkTableInfo>, create and populate a TaskGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<TaskGroupLinkTableInfo>)

From a TargetedSelect<TaskGroupLinkTableInfo>, execute it and return an IEnumerable<TaskGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<TaskGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<TaskGroupLinkTableInfo>, execute it and return an IEnumerable<TaskGroupLinkRecordData> with the results

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

ToInsertAsync(TaskGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TaskGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(TaskGroupLinkRow)

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

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