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