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