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