Show / Hide Table of Contents

Class ForeignDeviceRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ForeignDeviceTableInfo>)

From a TargetedDataRecord<ForeignDeviceTableInfo>, create and populate a ForeignDeviceRecordData POCO object

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

FromSelect(TargetedSelect<ForeignDeviceTableInfo>)

From a TargetedSelect<ForeignDeviceTableInfo>, execute it and return an IEnumerable<ForeignDeviceRecordData> with the results

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

FromSelectAsync(TargetedSelect<ForeignDeviceTableInfo>, CancellationToken)

From a TargetedSelect<ForeignDeviceTableInfo>, execute it and return an IEnumerable<ForeignDeviceRecordData> with the results

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

ToInsertAsync(ForeignDeviceRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ForeignDeviceRecordData>, CancellationToken)

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

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

ToRecordData(ForeignDeviceRow)

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

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