Show / Hide Table of Contents

Class EjselSourceXmlRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<EjselSourceXmlTableInfo>)

From a TargetedDataRecord<EjselSourceXmlTableInfo>, create and populate a EjselSourceXmlRecordData POCO object

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

FromSelect(TargetedSelect<EjselSourceXmlTableInfo>)

From a TargetedSelect<EjselSourceXmlTableInfo>, execute it and return an IEnumerable<EjselSourceXmlRecordData> with the results

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

ToInsert(EjselSourceXmlRecordData)

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

ToInserts(IEnumerable<EjselSourceXmlRecordData>)

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