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