Show / Hide Table of Contents

Class ReporterListDefRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ReporterListDefTableInfo>)

From a TargetedDataRecord<ReporterListDefTableInfo>, create and populate a ReporterListDefRecordData POCO object

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

FromSelect(TargetedSelect<ReporterListDefTableInfo>)

From a TargetedSelect<ReporterListDefTableInfo>, execute it and return an IEnumerable<ReporterListDefRecordData> with the results

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

FromSelectAsync(TargetedSelect<ReporterListDefTableInfo>, CancellationToken)

From a TargetedSelect<ReporterListDefTableInfo>, execute it and return an IEnumerable<ReporterListDefRecordData> with the results

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

ToInsertAsync(ReporterListDefRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ReporterListDefRecordData>, CancellationToken)

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

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

ToRecordData(ReporterListDefRow)

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

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