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