Show / Hide Table of Contents

Class SListElementRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SListElementTableInfo>)

From a TargetedDataRecord<SListElementTableInfo>, create and populate a SListElementRecordData POCO object

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

FromSelect(TargetedSelect<SListElementTableInfo>)

From a TargetedSelect<SListElementTableInfo>, execute it and return an IEnumerable<SListElementRecordData> with the results

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

FromSelectAsync(TargetedSelect<SListElementTableInfo>, CancellationToken)

From a TargetedSelect<SListElementTableInfo>, execute it and return an IEnumerable<SListElementRecordData> with the results

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

ToInsertAsync(SListElementRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SListElementRecordData>, CancellationToken)

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

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

ToRecordData(SListElementRow)

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

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