Show / Hide Table of Contents

Class PushNotificationServiceRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PushNotificationServiceTableInfo>)

From a TargetedDataRecord<PushNotificationServiceTableInfo>, create and populate a PushNotificationServiceRecordData POCO object

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

FromSelect(TargetedSelect<PushNotificationServiceTableInfo>)

From a TargetedSelect<PushNotificationServiceTableInfo>, execute it and return an IEnumerable<PushNotificationServiceRecordData> with the results

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

FromSelectAsync(TargetedSelect<PushNotificationServiceTableInfo>, CancellationToken)

From a TargetedSelect<PushNotificationServiceTableInfo>, execute it and return an IEnumerable<PushNotificationServiceRecordData> with the results

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

ToInsertAsync(PushNotificationServiceRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PushNotificationServiceRecordData>, CancellationToken)

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

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

ToRecordData(PushNotificationServiceRow)

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

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