Class PrefDescLineRecordDataExtensions
Extension methods to make it easy to fetch PrefDescLineRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
PrefDescLineRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class PrefDescLineRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<PrefDescLineTableInfo>)
Declaration
public static PrefDescLineRecordData FromRecord(this TargetedDataRecord<PrefDescLineTableInfo> 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 { PrefDescLineItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<PrefDescLineTableInfo>)
From a TargetedSelect<PrefDescLineTableInfo>, execute it and return an IEnumerable<PrefDescLineRecordData> with the results
Declaration
public static IEnumerable<PrefDescLineRecordData> FromSelect(this TargetedSelect<PrefDescLineTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(PrefDescLineRecordData)
Extension methods to make it easy to fetch PrefDescLineRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this PrefDescLineRecordData record)
Parameters
Returns
ToInserts(IEnumerable<PrefDescLineRecordData>)
Extension methods to make it easy to fetch PrefDescLineRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PrefDescLineRecordData> records)
Parameters
Returns
ToRecordData(PrefDescLineRow)
Extension methods to make it easy to fetch PrefDescLineRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static PrefDescLineRecordData ToRecordData(this PrefDescLineRow row)
Parameters
Returns