Show / Hide Table of Contents

Class HotlistRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<HotlistTableInfo>)

From a TargetedDataRecord<HotlistTableInfo>, create and populate a HotlistRecordData POCO object

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

FromSelect(TargetedSelect<HotlistTableInfo>)

From a TargetedSelect<HotlistTableInfo>, execute it and return an IEnumerable<HotlistRecordData> with the results

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

FromSelectAsync(TargetedSelect<HotlistTableInfo>, CancellationToken)

From a TargetedSelect<HotlistTableInfo>, execute it and return an IEnumerable<HotlistRecordData> with the results

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

ToInsertAsync(HotlistRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<HotlistRecordData>, CancellationToken)

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

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

ToRecordData(HotlistRow)

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

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