Show / Hide Table of Contents

Class ErpExternalKeyRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ErpExternalKeyTableInfo>)

From a TargetedDataRecord<ErpExternalKeyTableInfo>, create and populate a ErpExternalKeyRecordData POCO object

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

FromSelect(TargetedSelect<ErpExternalKeyTableInfo>)

From a TargetedSelect<ErpExternalKeyTableInfo>, execute it and return an IEnumerable<ErpExternalKeyRecordData> with the results

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

FromSelectAsync(TargetedSelect<ErpExternalKeyTableInfo>, CancellationToken)

From a TargetedSelect<ErpExternalKeyTableInfo>, execute it and return an IEnumerable<ErpExternalKeyRecordData> with the results

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

ToInsertAsync(ErpExternalKeyRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ErpExternalKeyRecordData>, CancellationToken)

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

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

ToRecordData(ErpExternalKeyRow)

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

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