Show / Hide Table of Contents

Class UserCandidateRecordDataExtensions

Extension methods to make it easy to fetch UserCandidateRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
UserCandidateRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class UserCandidateRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<UserCandidateTableInfo>)

From a TargetedDataRecord<UserCandidateTableInfo>, create and populate a UserCandidateRecordData POCO object

Declaration
public static UserCandidateRecordData FromRecord(this TargetedDataRecord<UserCandidateTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<UserCandidateTableInfo> record
Returns
Type Description
UserCandidateRecordData
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
Type Name Description
TargetedSelect<UserCandidateTableInfo> select
Returns
Type Description
IEnumerable<UserCandidateRecordData>
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
Type Name Description
TargetedSelect<UserCandidateTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<UserCandidateRecordData>
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
Type Name Description
UserCandidateRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<UserCandidateRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
UserCandidateRow row
Returns
Type Description
UserCandidateRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top