Show / Hide Table of Contents

Class ProductCategoryHeadingLinkRecordDataExtensions

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

Inheritance
object
ProductCategoryHeadingLinkRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class ProductCategoryHeadingLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ProductCategoryHeadingLinkTableInfo>)

From a TargetedDataRecord<ProductCategoryHeadingLinkTableInfo>, create and populate a ProductCategoryHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProductCategoryHeadingLinkTableInfo>)

From a TargetedSelect<ProductCategoryHeadingLinkTableInfo>, execute it and return an IEnumerable<ProductCategoryHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductCategoryHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProductCategoryHeadingLinkTableInfo>, execute it and return an IEnumerable<ProductCategoryHeadingLinkRecordData> with the results

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

ToInsertAsync(ProductCategoryHeadingLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ProductCategoryHeadingLinkRecordData>, CancellationToken)

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

ToRecordData(ProductCategoryHeadingLinkRow)

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