Show / Hide Table of Contents

Class FormRecordDataExtensions

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

Inheritance
Object
FormRecordDataExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class FormRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<FormTableInfo>)

From a TargetedDataRecord<FormTableInfo>, create and populate a FormRecordData POCO object

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

FromSelect(TargetedSelect<FormTableInfo>)

From a TargetedSelect<FormTableInfo>, execute it and return an IEnumerable<FormRecordData> with the results

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

ToInsert(FormRecordData)

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

ToInserts(IEnumerable<FormRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<FormRecordData> records)
Parameters
Type Name Description
IEnumerable<FormRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top