Show / Hide Table of Contents

Class ContIntRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ContIntTableInfo>)

From a TargetedDataRecord<ContIntTableInfo>, create and populate a ContIntRecordData POCO object

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

FromSelect(TargetedSelect<ContIntTableInfo>)

From a TargetedSelect<ContIntTableInfo>, execute it and return an IEnumerable<ContIntRecordData> with the results

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

FromSelectAsync(TargetedSelect<ContIntTableInfo>, CancellationToken)

From a TargetedSelect<ContIntTableInfo>, execute it and return an IEnumerable<ContIntRecordData> with the results

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

ToInsertAsync(ContIntRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ContIntRecordData>, CancellationToken)

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

ToRecordData(ContIntRow)

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