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