Show / Hide Table of Contents

Class PriorityRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PriorityTableInfo>)

From a TargetedDataRecord<PriorityTableInfo>, create and populate a PriorityRecordData POCO object

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

FromSelect(TargetedSelect<PriorityTableInfo>)

From a TargetedSelect<PriorityTableInfo>, execute it and return an IEnumerable<PriorityRecordData> with the results

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

FromSelectAsync(TargetedSelect<PriorityTableInfo>, CancellationToken)

From a TargetedSelect<PriorityTableInfo>, execute it and return an IEnumerable<PriorityRecordData> with the results

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

ToInsertAsync(PriorityRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PriorityRecordData>, CancellationToken)

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

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

ToRecordData(PriorityRow)

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

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