Show / Hide Table of Contents

Class TemporaryKeyRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TemporaryKeyTableInfo>)

From a TargetedDataRecord<TemporaryKeyTableInfo>, create and populate a TemporaryKeyRecordData POCO object

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

FromSelect(TargetedSelect<TemporaryKeyTableInfo>)

From a TargetedSelect<TemporaryKeyTableInfo>, execute it and return an IEnumerable<TemporaryKeyRecordData> with the results

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

FromSelectAsync(TargetedSelect<TemporaryKeyTableInfo>, CancellationToken)

From a TargetedSelect<TemporaryKeyTableInfo>, execute it and return an IEnumerable<TemporaryKeyRecordData> with the results

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

ToInsertAsync(TemporaryKeyRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<TemporaryKeyRecordData>, CancellationToken)

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

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

ToRecordData(TemporaryKeyRow)

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

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