Class RoleMemberRecordDataExtensions
Extension methods to make it easy to fetch RoleMemberRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
RoleMemberRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class RoleMemberRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<RoleMemberTableInfo>)
From a TargetedDataRecord<RoleMemberTableInfo>, create and populate a RoleMemberRecordData POCO object
Declaration
public static RoleMemberRecordData FromRecord(this TargetedDataRecord<RoleMemberTableInfo> 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 { RoleMemberItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<RoleMemberTableInfo>)
From a TargetedSelect<RoleMemberTableInfo>, execute it and return an IEnumerable<RoleMemberRecordData> with the results
Declaration
public static IEnumerable<RoleMemberRecordData> FromSelect(this TargetedSelect<RoleMemberTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<RoleMemberTableInfo>, CancellationToken)
From a TargetedSelect<RoleMemberTableInfo>, execute it and return an IEnumerable<RoleMemberRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<RoleMemberRecordData> FromSelectAsync(this TargetedSelect<RoleMemberTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(RoleMemberRecordData, CancellationToken)
Extension methods to make it easy to fetch RoleMemberRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this RoleMemberRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<RoleMemberRecordData>, CancellationToken)
Extension methods to make it easy to fetch RoleMemberRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<RoleMemberRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(RoleMemberRow)
Extension methods to make it easy to fetch RoleMemberRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static RoleMemberRecordData ToRecordData(this RoleMemberRow row)
Parameters
Returns