Show / Hide Table of Contents

Class SelectionMemberRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SelectionMemberTableInfo>)

From a TargetedDataRecord<SelectionMemberTableInfo>, create and populate a SelectionMemberRecordData POCO object

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

FromSelect(TargetedSelect<SelectionMemberTableInfo>)

From a TargetedSelect<SelectionMemberTableInfo>, execute it and return an IEnumerable<SelectionMemberRecordData> with the results

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

FromSelectAsync(TargetedSelect<SelectionMemberTableInfo>, CancellationToken)

From a TargetedSelect<SelectionMemberTableInfo>, execute it and return an IEnumerable<SelectionMemberRecordData> with the results

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

ToInsertAsync(SelectionMemberRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SelectionMemberRecordData>, CancellationToken)

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

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

ToRecordData(SelectionMemberRow)

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

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