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