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