Show / Hide Table of Contents

Class StakeholderRoleRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<StakeholderRoleTableInfo>)

From a TargetedDataRecord<StakeholderRoleTableInfo>, create and populate a StakeholderRoleRecordData POCO object

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

FromSelect(TargetedSelect<StakeholderRoleTableInfo>)

From a TargetedSelect<StakeholderRoleTableInfo>, execute it and return an IEnumerable<StakeholderRoleRecordData> with the results

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

FromSelectAsync(TargetedSelect<StakeholderRoleTableInfo>, CancellationToken)

From a TargetedSelect<StakeholderRoleTableInfo>, execute it and return an IEnumerable<StakeholderRoleRecordData> with the results

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

ToInsertAsync(StakeholderRoleRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<StakeholderRoleRecordData>, CancellationToken)

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

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

ToRecordData(StakeholderRoleRow)

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

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