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