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