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