Show / Hide Table of Contents

Class WebhookUsageRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<WebhookUsageTableInfo>)

From a TargetedDataRecord<WebhookUsageTableInfo>, create and populate a WebhookUsageRecordData POCO object

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

FromSelect(TargetedSelect<WebhookUsageTableInfo>)

From a TargetedSelect<WebhookUsageTableInfo>, execute it and return an IEnumerable<WebhookUsageRecordData> with the results

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

FromSelectAsync(TargetedSelect<WebhookUsageTableInfo>, CancellationToken)

From a TargetedSelect<WebhookUsageTableInfo>, execute it and return an IEnumerable<WebhookUsageRecordData> with the results

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

ToInsertAsync(WebhookUsageRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<WebhookUsageRecordData>, CancellationToken)

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

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

ToRecordData(WebhookUsageRow)

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

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