Show / Hide Table of Contents

Class EmailAttachmentRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<EmailAttachmentTableInfo>)

From a TargetedDataRecord<EmailAttachmentTableInfo>, create and populate a EmailAttachmentRecordData POCO object

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

FromSelect(TargetedSelect<EmailAttachmentTableInfo>)

From a TargetedSelect<EmailAttachmentTableInfo>, execute it and return an IEnumerable<EmailAttachmentRecordData> with the results

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

ToInsert(EmailAttachmentRecordData)

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

ToInserts(IEnumerable<EmailAttachmentRecordData>)

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

ToRecordData(EmailAttachmentRow)

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