Show / Hide Table of Contents

Class PersIntRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PersIntTableInfo>)

From a TargetedDataRecord<PersIntTableInfo>, create and populate a PersIntRecordData POCO object

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

FromSelect(TargetedSelect<PersIntTableInfo>)

From a TargetedSelect<PersIntTableInfo>, execute it and return an IEnumerable<PersIntRecordData> with the results

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

FromSelectAsync(TargetedSelect<PersIntTableInfo>, CancellationToken)

From a TargetedSelect<PersIntTableInfo>, execute it and return an IEnumerable<PersIntRecordData> with the results

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

ToInsertAsync(PersIntRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<PersIntRecordData>, CancellationToken)

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

ToRecordData(PersIntRow)

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