Show / Hide Table of Contents

Class SubscriptionUnitGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SubscriptionUnitGroupLinkTableInfo>)

From a TargetedDataRecord<SubscriptionUnitGroupLinkTableInfo>, create and populate a SubscriptionUnitGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<SubscriptionUnitGroupLinkTableInfo>)

From a TargetedSelect<SubscriptionUnitGroupLinkTableInfo>, execute it and return an IEnumerable<SubscriptionUnitGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<SubscriptionUnitGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<SubscriptionUnitGroupLinkTableInfo>, execute it and return an IEnumerable<SubscriptionUnitGroupLinkRecordData> with the results

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

ToInsertAsync(SubscriptionUnitGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SubscriptionUnitGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(SubscriptionUnitGroupLinkRow)

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

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