Show / Hide Table of Contents

Class HelpRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<HelpTableInfo>)

From a TargetedDataRecord<HelpTableInfo>, create and populate a HelpRecordData POCO object

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

FromSelect(TargetedSelect<HelpTableInfo>)

From a TargetedSelect<HelpTableInfo>, execute it and return an IEnumerable<HelpRecordData> with the results

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

FromSelectAsync(TargetedSelect<HelpTableInfo>, CancellationToken)

From a TargetedSelect<HelpTableInfo>, execute it and return an IEnumerable<HelpRecordData> with the results

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

ToInsertAsync(HelpRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<HelpRecordData>, CancellationToken)

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

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

ToRecordData(HelpRow)

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

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