Class WebhookRecordDataExtensions
Extension methods to make it easy to fetch WebhookRecordData objects from the database,
using the infrastructure
Inheritance
WebhookRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class WebhookRecordDataExtensions : Object
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
Returns
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
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(WebhookRecordData)
Extension methods to make it easy to fetch WebhookRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this WebhookRecordData record)
Parameters
Returns
ToInserts(IEnumerable<WebhookRecordData>)
Extension methods to make it easy to fetch WebhookRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<WebhookRecordData> records)
Parameters
Returns
ToRecordData(WebhookRow)
Extension methods to make it easy to fetch WebhookRecordData objects from the database,
using the infrastructure
Declaration
public static WebhookRecordData ToRecordData(this WebhookRow row)
Parameters
Returns