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