Show / Hide Table of Contents

Class QuoteDenyReasonRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteDenyReasonTableInfo>)

From a TargetedDataRecord<QuoteDenyReasonTableInfo>, create and populate a QuoteDenyReasonRecordData POCO object

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

FromSelect(TargetedSelect<QuoteDenyReasonTableInfo>)

From a TargetedSelect<QuoteDenyReasonTableInfo>, execute it and return an IEnumerable<QuoteDenyReasonRecordData> with the results

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

ToInsert(QuoteDenyReasonRecordData)

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

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

ToInserts(IEnumerable<QuoteDenyReasonRecordData>)

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

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

ToRecordData(QuoteDenyReasonRow)

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

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