Show / Hide Table of Contents

Class ExternalEventRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ExternalEventTableInfo>)

From a TargetedDataRecord<ExternalEventTableInfo>, create and populate a ExternalEventRecordData POCO object

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

FromSelect(TargetedSelect<ExternalEventTableInfo>)

From a TargetedSelect<ExternalEventTableInfo>, execute it and return an IEnumerable<ExternalEventRecordData> with the results

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

ToInsert(ExternalEventRecordData)

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

ToInserts(IEnumerable<ExternalEventRecordData>)

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