Show / Hide Table of Contents

Class ProductFamilyGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProductFamilyGroupLinkTableInfo>)

From a TargetedDataRecord<ProductFamilyGroupLinkTableInfo>, create and populate a ProductFamilyGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<ProductFamilyGroupLinkTableInfo>)

From a TargetedSelect<ProductFamilyGroupLinkTableInfo>, execute it and return an IEnumerable<ProductFamilyGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductFamilyGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<ProductFamilyGroupLinkTableInfo>, execute it and return an IEnumerable<ProductFamilyGroupLinkRecordData> with the results

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

ToInsertAsync(ProductFamilyGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ProductFamilyGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(ProductFamilyGroupLinkRow)

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

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