Show / Hide Table of Contents

Class CountryHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CountryHeadingLinkTableInfo>)

From a TargetedDataRecord<CountryHeadingLinkTableInfo>, create and populate a CountryHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<CountryHeadingLinkTableInfo>)

From a TargetedSelect<CountryHeadingLinkTableInfo>, execute it and return an IEnumerable<CountryHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<CountryHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<CountryHeadingLinkTableInfo>, execute it and return an IEnumerable<CountryHeadingLinkRecordData> with the results

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

ToInsertAsync(CountryHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<CountryHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(CountryHeadingLinkRow)

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

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