Class ExternalEventRecordDataExtensions
Extension methods to make it easy to fetch ExternalEventRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
ExternalEventRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ExternalEventRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<ExternalEventTableInfo>)
Declaration
public static ExternalEventRecordData FromRecord(this TargetedDataRecord<ExternalEventTableInfo> 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 { ExternalEventItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ExternalEventTableInfo>)
From a TargetedSelect<ExternalEventTableInfo>, execute it and return an IEnumerable<ExternalEventRecordData> with the results
Declaration
public static IEnumerable<ExternalEventRecordData> FromSelect(this TargetedSelect<ExternalEventTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<ExternalEventTableInfo>, CancellationToken)
From a TargetedSelect<ExternalEventTableInfo>, execute it and return an IEnumerable<ExternalEventRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<ExternalEventRecordData> FromSelectAsync(this TargetedSelect<ExternalEventTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(ExternalEventRecordData, CancellationToken)
Extension methods to make it easy to fetch ExternalEventRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this ExternalEventRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<ExternalEventRecordData>, CancellationToken)
Extension methods to make it easy to fetch ExternalEventRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<ExternalEventRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(ExternalEventRow)
Extension methods to make it easy to fetch ExternalEventRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static ExternalEventRecordData ToRecordData(this ExternalEventRow row)
Parameters
Returns