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