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