Show / Hide Table of Contents

Class SORSectionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SORSectionTableInfo>)

From a TargetedDataRecord<SORSectionTableInfo>, create and populate a SORSectionRecordData POCO object

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

FromSelect(TargetedSelect<SORSectionTableInfo>)

From a TargetedSelect<SORSectionTableInfo>, execute it and return an IEnumerable<SORSectionRecordData> with the results

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

FromSelectAsync(TargetedSelect<SORSectionTableInfo>, CancellationToken)

From a TargetedSelect<SORSectionTableInfo>, execute it and return an IEnumerable<SORSectionRecordData> with the results

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

ToInsertAsync(SORSectionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SORSectionRecordData>, CancellationToken)

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

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

ToRecordData(SORSectionRow)

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

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