Show / Hide Table of Contents

Class OutboxRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OutboxTableInfo>)

From a TargetedDataRecord<OutboxTableInfo>, create and populate a OutboxRecordData POCO object

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

FromSelect(TargetedSelect<OutboxTableInfo>)

From a TargetedSelect<OutboxTableInfo>, execute it and return an IEnumerable<OutboxRecordData> with the results

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

ToInsert(OutboxRecordData)

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

ToInserts(IEnumerable<OutboxRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<OutboxRecordData> records)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OutboxRecordData> records
Returns
Type Description
System.Collections.Generic.IEnumerable<Insert>

ToRecordData(OutboxRow)

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