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