Show / Hide Table of Contents

Class OutboxRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OutboxTableInfo>)

From a TargetedDataRecord<OutboxTableInfo>, create and populate a OutboxRecordData POCO object

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

FromSelect(TargetedSelect<OutboxTableInfo>)

From a TargetedSelect<OutboxTableInfo>, execute it and return an IEnumerable<OutboxRecordData> with the results

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

FromSelectAsync(TargetedSelect<OutboxTableInfo>, CancellationToken)

From a TargetedSelect<OutboxTableInfo>, execute it and return an IEnumerable<OutboxRecordData> with the results

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

ToInsertAsync(OutboxRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<OutboxRecordData>, CancellationToken)

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

ToRecordData(OutboxRow)

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