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