Show / Hide Table of Contents

Class DocTmplRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DocTmplTableInfo>)

From a TargetedDataRecord<DocTmplTableInfo>, create and populate a DocTmplRecordData POCO object

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

FromSelect(TargetedSelect<DocTmplTableInfo>)

From a TargetedSelect<DocTmplTableInfo>, execute it and return an IEnumerable<DocTmplRecordData> with the results

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

ToInsert(DocTmplRecordData)

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

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

ToInserts(IEnumerable<DocTmplRecordData>)

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

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

ToRecordData(DocTmplRow)

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

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