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