Show / Hide Table of Contents

Class FormKeysRecordDataExtensions

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

Inheritance
Object
FormKeysRecordDataExtensions
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 FormKeysRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<FormKeysTableInfo>)

From a TargetedDataRecord<FormKeysTableInfo>, create and populate a FormKeysRecordData POCO object

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

FromSelect(TargetedSelect<FormKeysTableInfo>)

From a TargetedSelect<FormKeysTableInfo>, execute it and return an IEnumerable<FormKeysRecordData> with the results

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

ToInsert(FormKeysRecordData)

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

ToInserts(IEnumerable<FormKeysRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<FormKeysRecordData> records)
Parameters
Type Name Description
IEnumerable<FormKeysRecordData> 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