Show / Hide Table of Contents

Class SoapAccessRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SoapAccessTableInfo>)

From a TargetedDataRecord<SoapAccessTableInfo>, create and populate a SoapAccessRecordData POCO object

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

FromSelect(TargetedSelect<SoapAccessTableInfo>)

From a TargetedSelect<SoapAccessTableInfo>, execute it and return an IEnumerable<SoapAccessRecordData> with the results

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

FromSelectAsync(TargetedSelect<SoapAccessTableInfo>, CancellationToken)

From a TargetedSelect<SoapAccessTableInfo>, execute it and return an IEnumerable<SoapAccessRecordData> with the results

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

ToInsertAsync(SoapAccessRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SoapAccessRecordData>, CancellationToken)

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

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

ToRecordData(SoapAccessRow)

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

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