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