Show / Hide Table of Contents

Class SearchCatGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SearchCatGroupLinkTableInfo>)

From a TargetedDataRecord<SearchCatGroupLinkTableInfo>, create and populate a SearchCatGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<SearchCatGroupLinkTableInfo>)

From a TargetedSelect<SearchCatGroupLinkTableInfo>, execute it and return an IEnumerable<SearchCatGroupLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<SearchCatGroupLinkTableInfo>, CancellationToken)

From a TargetedSelect<SearchCatGroupLinkTableInfo>, execute it and return an IEnumerable<SearchCatGroupLinkRecordData> with the results

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

ToInsertAsync(SearchCatGroupLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SearchCatGroupLinkRecordData>, CancellationToken)

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

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

ToRecordData(SearchCatGroupLinkRow)

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

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