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