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