Show / Hide Table of Contents

Class SaleStakeholderRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SaleStakeholderTableInfo>)

From a TargetedDataRecord<SaleStakeholderTableInfo>, create and populate a SaleStakeholderRecordData POCO object

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

FromSelect(TargetedSelect<SaleStakeholderTableInfo>)

From a TargetedSelect<SaleStakeholderTableInfo>, execute it and return an IEnumerable<SaleStakeholderRecordData> with the results

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

FromSelectAsync(TargetedSelect<SaleStakeholderTableInfo>, CancellationToken)

From a TargetedSelect<SaleStakeholderTableInfo>, execute it and return an IEnumerable<SaleStakeholderRecordData> with the results

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

ToInsertAsync(SaleStakeholderRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SaleStakeholderRecordData>, CancellationToken)

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

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

ToRecordData(SaleStakeholderRow)

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

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