Show / Hide Table of Contents

Class ErpConnectorRecordDataExtensions

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

Inheritance
object
ErpConnectorRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class ErpConnectorRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ErpConnectorTableInfo>)

From a TargetedDataRecord<ErpConnectorTableInfo>, create and populate a ErpConnectorRecordData POCO object

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

FromSelect(TargetedSelect<ErpConnectorTableInfo>)

From a TargetedSelect<ErpConnectorTableInfo>, execute it and return an IEnumerable<ErpConnectorRecordData> with the results

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

FromSelectAsync(TargetedSelect<ErpConnectorTableInfo>, CancellationToken)

From a TargetedSelect<ErpConnectorTableInfo>, execute it and return an IEnumerable<ErpConnectorRecordData> with the results

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

ToInsertAsync(ErpConnectorRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ErpConnectorRecordData>, CancellationToken)

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

ToRecordData(ErpConnectorRow)

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