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