Show / Hide Table of Contents

Class ProjStatusHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProjStatusHeadingLinkTableInfo>)

From a TargetedDataRecord<ProjStatusHeadingLinkTableInfo>, create and populate a ProjStatusHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProjStatusHeadingLinkTableInfo>)

From a TargetedSelect<ProjStatusHeadingLinkTableInfo>, execute it and return an IEnumerable<ProjStatusHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProjStatusHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProjStatusHeadingLinkTableInfo>, execute it and return an IEnumerable<ProjStatusHeadingLinkRecordData> with the results

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

ToInsertAsync(ProjStatusHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProjStatusHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProjStatusHeadingLinkRow)

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

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