Show / Hide Table of Contents

Class ProductTypeGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProductTypeGroupLinkTableInfo>)

From a TargetedDataRecord<ProductTypeGroupLinkTableInfo>, create and populate a ProductTypeGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProductTypeGroupLinkTableInfo>)

From a TargetedSelect<ProductTypeGroupLinkTableInfo>, execute it and return an IEnumerable<ProductTypeGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductTypeGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProductTypeGroupLinkTableInfo>, execute it and return an IEnumerable<ProductTypeGroupLinkRecordData> with the results

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

ToInsertAsync(ProductTypeGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProductTypeGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProductTypeGroupLinkRow)

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

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