Show / Hide Table of Contents

Class EjselSourceXmlRecordDataExtensions

Extension methods to make it easy to fetch EjselSourceXmlRecordData objects from the database, using the TargetedSelect 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();

FromSelectAsync(TargetedSelect<EjselSourceXmlTableInfo>, CancellationToken)

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

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<EjselSourceXmlRecordData> FromSelectAsync(this TargetedSelect<EjselSourceXmlTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<EjselSourceXmlTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<EjselSourceXmlRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(EjselSourceXmlRecordData, CancellationToken)

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

Declaration
public static Task<Insert> ToInsertAsync(this EjselSourceXmlRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
EjselSourceXmlRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<EjselSourceXmlRecordData>, CancellationToken)

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

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<EjselSourceXmlRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<EjselSourceXmlRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(EjselSourceXmlRow)

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

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