Show / Hide Table of Contents

Class OutgoingMessageRecordDataExtensions

Extension methods to make it easy to fetch OutgoingMessageRecordData objects from the database, using the infrastructure

Inheritance
Object
OutgoingMessageRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class OutgoingMessageRecordDataExtensions : Object

Methods

FromRecord(TargetedDataRecord<OutgoingMessageTableInfo>)

From a TargetedDataRecord<OutgoingMessageTableInfo>, create and populate a OutgoingMessageRecordData POCO object

Declaration
public static OutgoingMessageRecordData FromRecord(this TargetedDataRecord<OutgoingMessageTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<OutgoingMessageTableInfo> record
Returns
Type Description
OutgoingMessageRecordData
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 { OutgoingMessageItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<OutgoingMessageTableInfo>)

From a TargetedSelect<OutgoingMessageTableInfo>, execute it and return an IEnumerable<OutgoingMessageRecordData> with the results

Declaration
public static IEnumerable<OutgoingMessageRecordData> FromSelect(this TargetedSelect<OutgoingMessageTableInfo> select)
Parameters
Type Name Description
TargetedSelect<OutgoingMessageTableInfo> select
Returns
Type Description
IEnumerable<OutgoingMessageRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(OutgoingMessageRecordData)

Extension methods to make it easy to fetch OutgoingMessageRecordData objects from the database, using the infrastructure

Declaration
public static Insert ToInsert(this OutgoingMessageRecordData record)
Parameters
Type Name Description
OutgoingMessageRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<OutgoingMessageRecordData>)

Extension methods to make it easy to fetch OutgoingMessageRecordData objects from the database, using the infrastructure

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<OutgoingMessageRecordData> records)
Parameters
Type Name Description
IEnumerable<OutgoingMessageRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(OutgoingMessageRow)

Extension methods to make it easy to fetch OutgoingMessageRecordData objects from the database, using the infrastructure

Declaration
public static OutgoingMessageRecordData ToRecordData(this OutgoingMessageRow row)
Parameters
Type Name Description
OutgoingMessageRow row
Returns
Type Description
OutgoingMessageRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top