Class Obsolete4RecordDataExtensions
Extension methods to make it easy to fetch Obsolete4RecordData objects from the database,
using the infrastructure
Inheritance
Obsolete4RecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class Obsolete4RecordDataExtensions : Object
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();
ToInsert(Obsolete4RecordData)
Extension methods to make it easy to fetch Obsolete4RecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this Obsolete4RecordData record)
Parameters
Returns
ToInserts(IEnumerable<Obsolete4RecordData>)
Extension methods to make it easy to fetch Obsolete4RecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<Obsolete4RecordData> records)
Parameters
Returns
ToRecordData(Obsolete4Row)
Extension methods to make it easy to fetch Obsolete4RecordData objects from the database,
using the infrastructure
Declaration
public static Obsolete4RecordData ToRecordData(this Obsolete4Row row)
Parameters
Returns