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