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