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