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();
ToInsert(Obsolete2RecordData)
Extension methods to make it easy to fetch Obsolete2RecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this Obsolete2RecordData record)
Parameters
Returns
ToInserts(IEnumerable<Obsolete2RecordData>)
Extension methods to make it easy to fetch Obsolete2RecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<Obsolete2RecordData> records)
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