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