Class ErpConnectorRecordDataExtensions
Extension methods to make it easy to fetch ErpConnectorRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
ErpConnectorRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ErpConnectorRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<ErpConnectorTableInfo>)
Declaration
public static ErpConnectorRecordData FromRecord(this TargetedDataRecord<ErpConnectorTableInfo> record)
Parameters
Returns
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
Returns
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
Returns
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
Returns
ToInsertsAsync(IEnumerable<ErpConnectorRecordData>, CancellationToken)
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<ErpConnectorRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(ErpConnectorRow)
Declaration
public static ErpConnectorRecordData ToRecordData(this ErpConnectorRow row)
Parameters
Returns