Show / Hide Table of Contents

Class EjselMetaResultRecordDataExtensions

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

Inheritance
object
EjselMetaResultRecordDataExtensions
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 EjselMetaResultRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<EjselMetaResultTableInfo>)

From a TargetedDataRecord<EjselMetaResultTableInfo>, create and populate a EjselMetaResultRecordData POCO object

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

FromSelect(TargetedSelect<EjselMetaResultTableInfo>)

From a TargetedSelect<EjselMetaResultTableInfo>, execute it and return an IEnumerable<EjselMetaResultRecordData> with the results

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

FromSelectAsync(TargetedSelect<EjselMetaResultTableInfo>, CancellationToken)

From a TargetedSelect<EjselMetaResultTableInfo>, execute it and return an IEnumerable<EjselMetaResultRecordData> with the results

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

ToInsertAsync(EjselMetaResultRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<EjselMetaResultRecordData>, CancellationToken)

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

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

ToRecordData(EjselMetaResultRow)

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

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