Show / Hide Table of Contents

Class ProductCategoryGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProductCategoryGroupLinkTableInfo>)

From a TargetedDataRecord<ProductCategoryGroupLinkTableInfo>, create and populate a ProductCategoryGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProductCategoryGroupLinkTableInfo>)

From a TargetedSelect<ProductCategoryGroupLinkTableInfo>, execute it and return an IEnumerable<ProductCategoryGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductCategoryGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProductCategoryGroupLinkTableInfo>, execute it and return an IEnumerable<ProductCategoryGroupLinkRecordData> with the results

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

ToInsertAsync(ProductCategoryGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProductCategoryGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProductCategoryGroupLinkRow)

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

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