Show / Hide Table of Contents

Class ProductFamilyHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProductFamilyHeadingLinkTableInfo>)

From a TargetedDataRecord<ProductFamilyHeadingLinkTableInfo>, create and populate a ProductFamilyHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProductFamilyHeadingLinkTableInfo>)

From a TargetedSelect<ProductFamilyHeadingLinkTableInfo>, execute it and return an IEnumerable<ProductFamilyHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductFamilyHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProductFamilyHeadingLinkTableInfo>, execute it and return an IEnumerable<ProductFamilyHeadingLinkRecordData> with the results

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

ToInsertAsync(ProductFamilyHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProductFamilyHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProductFamilyHeadingLinkRow)

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

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