Show / Hide Table of Contents

Class DbiAgentFieldRecordDataExtensions

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

Inheritance
object
DbiAgentFieldRecordDataExtensions
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 DbiAgentFieldRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<DbiAgentFieldTableInfo>)

From a TargetedDataRecord<DbiAgentFieldTableInfo>, create and populate a DbiAgentFieldRecordData POCO object

Declaration
public static DbiAgentFieldRecordData FromRecord(this TargetedDataRecord<DbiAgentFieldTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<DbiAgentFieldTableInfo> record
Returns
Type Description
DbiAgentFieldRecordData
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 { DbiAgentFieldItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<DbiAgentFieldTableInfo>)

From a TargetedSelect<DbiAgentFieldTableInfo>, execute it and return an IEnumerable<DbiAgentFieldRecordData> with the results

Declaration
public static IEnumerable<DbiAgentFieldRecordData> FromSelect(this TargetedSelect<DbiAgentFieldTableInfo> select)
Parameters
Type Name Description
TargetedSelect<DbiAgentFieldTableInfo> select
Returns
Type Description
IEnumerable<DbiAgentFieldRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<DbiAgentFieldTableInfo>, CancellationToken)

From a TargetedSelect<DbiAgentFieldTableInfo>, execute it and return an IEnumerable<DbiAgentFieldRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<DbiAgentFieldRecordData> FromSelectAsync(this TargetedSelect<DbiAgentFieldTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<DbiAgentFieldTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<DbiAgentFieldRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(DbiAgentFieldRecordData, CancellationToken)

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

Declaration
public static Task<Insert> ToInsertAsync(this DbiAgentFieldRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DbiAgentFieldRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<DbiAgentFieldRecordData>, CancellationToken)

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

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<DbiAgentFieldRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<DbiAgentFieldRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(DbiAgentFieldRow)

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

Declaration
public static DbiAgentFieldRecordData ToRecordData(this DbiAgentFieldRow row)
Parameters
Type Name Description
DbiAgentFieldRow row
Returns
Type Description
DbiAgentFieldRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top