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