Show / Hide Table of Contents

Class DictionaryBaseRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DictionaryBaseTableInfo>)

From a TargetedDataRecord<DictionaryBaseTableInfo>, create and populate a DictionaryBaseRecordData POCO object

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

FromSelect(TargetedSelect<DictionaryBaseTableInfo>)

From a TargetedSelect<DictionaryBaseTableInfo>, execute it and return an IEnumerable<DictionaryBaseRecordData> with the results

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

FromSelectAsync(TargetedSelect<DictionaryBaseTableInfo>, CancellationToken)

From a TargetedSelect<DictionaryBaseTableInfo>, execute it and return an IEnumerable<DictionaryBaseRecordData> with the results

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

ToInsertAsync(DictionaryBaseRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<DictionaryBaseRecordData>, CancellationToken)

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

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

ToRecordData(DictionaryBaseRow)

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

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