Show / Hide Table of Contents

Class RefCountRangeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<RefCountRangeTableInfo>)

From a TargetedDataRecord<RefCountRangeTableInfo>, create and populate a RefCountRangeRecordData POCO object

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

FromSelect(TargetedSelect<RefCountRangeTableInfo>)

From a TargetedSelect<RefCountRangeTableInfo>, execute it and return an IEnumerable<RefCountRangeRecordData> with the results

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

FromSelectAsync(TargetedSelect<RefCountRangeTableInfo>, CancellationToken)

From a TargetedSelect<RefCountRangeTableInfo>, execute it and return an IEnumerable<RefCountRangeRecordData> with the results

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

ToInsertAsync(RefCountRangeRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<RefCountRangeRecordData>, CancellationToken)

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

ToRecordData(RefCountRangeRow)

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