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