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