Show / Hide Table of Contents

Class ProbRecordDataExtensions

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

Inheritance
object
ProbRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class ProbRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ProbTableInfo>)

From a TargetedDataRecord<ProbTableInfo>, create and populate a ProbRecordData POCO object

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

FromSelect(TargetedSelect<ProbTableInfo>)

From a TargetedSelect<ProbTableInfo>, execute it and return an IEnumerable<ProbRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProbTableInfo>, CancellationToken)

From a TargetedSelect<ProbTableInfo>, execute it and return an IEnumerable<ProbRecordData> with the results

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

ToInsertAsync(ProbRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ProbRecordData>, CancellationToken)

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

ToRecordData(ProbRow)

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