Show / Hide Table of Contents

Class OLESubjectRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OLESubjectTableInfo>)

From a TargetedDataRecord<OLESubjectTableInfo>, create and populate a OLESubjectRecordData POCO object

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

FromSelect(TargetedSelect<OLESubjectTableInfo>)

From a TargetedSelect<OLESubjectTableInfo>, execute it and return an IEnumerable<OLESubjectRecordData> with the results

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

FromSelectAsync(TargetedSelect<OLESubjectTableInfo>, CancellationToken)

From a TargetedSelect<OLESubjectTableInfo>, execute it and return an IEnumerable<OLESubjectRecordData> with the results

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

ToInsertAsync(OLESubjectRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<OLESubjectRecordData>, CancellationToken)

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

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

ToRecordData(OLESubjectRow)

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

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