Class StakeholderRoleRecordDataExtensions
Extension methods to make it easy to fetch StakeholderRoleRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
StakeholderRoleRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class StakeholderRoleRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<StakeholderRoleTableInfo>)
Declaration
public static StakeholderRoleRecordData FromRecord(this TargetedDataRecord<StakeholderRoleTableInfo> record)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns