Show / Hide Table of Contents

Class SaleTypeQuoteAttachmentRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SaleTypeQuoteAttachmentTableInfo>)

From a TargetedDataRecord<SaleTypeQuoteAttachmentTableInfo>, create and populate a SaleTypeQuoteAttachmentRecordData POCO object

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

FromSelect(TargetedSelect<SaleTypeQuoteAttachmentTableInfo>)

From a TargetedSelect<SaleTypeQuoteAttachmentTableInfo>, execute it and return an IEnumerable<SaleTypeQuoteAttachmentRecordData> with the results

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

ToInsert(SaleTypeQuoteAttachmentRecordData)

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

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

ToInserts(IEnumerable<SaleTypeQuoteAttachmentRecordData>)

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

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

ToRecordData(SaleTypeQuoteAttachmentRow)

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

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