Show / Hide Table of Contents

Class BinaryObjectRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<BinaryObjectTableInfo>)

From a TargetedDataRecord<BinaryObjectTableInfo>, create and populate a BinaryObjectRecordData POCO object

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

FromSelect(TargetedSelect<BinaryObjectTableInfo>)

From a TargetedSelect<BinaryObjectTableInfo>, execute it and return an IEnumerable<BinaryObjectRecordData> with the results

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

FromSelectAsync(TargetedSelect<BinaryObjectTableInfo>, CancellationToken)

From a TargetedSelect<BinaryObjectTableInfo>, execute it and return an IEnumerable<BinaryObjectRecordData> with the results

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

ToInsertAsync(BinaryObjectRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<BinaryObjectRecordData>, CancellationToken)

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

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

ToRecordData(BinaryObjectRow)

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

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