Show / Hide Table of Contents

Class ProjTypeHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProjTypeHeadingLinkTableInfo>)

From a TargetedDataRecord<ProjTypeHeadingLinkTableInfo>, create and populate a ProjTypeHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProjTypeHeadingLinkTableInfo>)

From a TargetedSelect<ProjTypeHeadingLinkTableInfo>, execute it and return an IEnumerable<ProjTypeHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProjTypeHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProjTypeHeadingLinkTableInfo>, execute it and return an IEnumerable<ProjTypeHeadingLinkRecordData> with the results

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

ToInsertAsync(ProjTypeHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProjTypeHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProjTypeHeadingLinkRow)

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

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