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