Show / Hide Table of Contents

Class WebhookRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<WebhookTableInfo>)

From a TargetedDataRecord<WebhookTableInfo>, create and populate a WebhookRecordData POCO object

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

FromSelect(TargetedSelect<WebhookTableInfo>)

From a TargetedSelect<WebhookTableInfo>, execute it and return an IEnumerable<WebhookRecordData> with the results

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

FromSelectAsync(TargetedSelect<WebhookTableInfo>, CancellationToken)

From a TargetedSelect<WebhookTableInfo>, execute it and return an IEnumerable<WebhookRecordData> with the results

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

ToInsertAsync(WebhookRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<WebhookRecordData>, CancellationToken)

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

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

ToRecordData(WebhookRow)

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

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