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