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