Show / Hide Table of Contents

Class SatelliteRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SatelliteTableInfo>)

From a TargetedDataRecord<SatelliteTableInfo>, create and populate a SatelliteRecordData POCO object

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

FromSelect(TargetedSelect<SatelliteTableInfo>)

From a TargetedSelect<SatelliteTableInfo>, execute it and return an IEnumerable<SatelliteRecordData> with the results

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

FromSelectAsync(TargetedSelect<SatelliteTableInfo>, CancellationToken)

From a TargetedSelect<SatelliteTableInfo>, execute it and return an IEnumerable<SatelliteRecordData> with the results

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

ToInsertAsync(SatelliteRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SatelliteRecordData>, CancellationToken)

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

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

ToRecordData(SatelliteRow)

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

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