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