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