Show / Hide Table of Contents

Class OLEFieldRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OLEFieldTableInfo>)

From a TargetedDataRecord<OLEFieldTableInfo>, create and populate a OLEFieldRecordData POCO object

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

FromSelect(TargetedSelect<OLEFieldTableInfo>)

From a TargetedSelect<OLEFieldTableInfo>, execute it and return an IEnumerable<OLEFieldRecordData> with the results

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

FromSelectAsync(TargetedSelect<OLEFieldTableInfo>, CancellationToken)

From a TargetedSelect<OLEFieldTableInfo>, execute it and return an IEnumerable<OLEFieldRecordData> with the results

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

ToInsertAsync(OLEFieldRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<OLEFieldRecordData>, CancellationToken)

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

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

ToRecordData(OLEFieldRow)

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

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