Show / Hide Table of Contents

Class DiaryViewRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DiaryViewTableInfo>)

From a TargetedDataRecord<DiaryViewTableInfo>, create and populate a DiaryViewRecordData POCO object

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

FromSelect(TargetedSelect<DiaryViewTableInfo>)

From a TargetedSelect<DiaryViewTableInfo>, execute it and return an IEnumerable<DiaryViewRecordData> with the results

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

FromSelectAsync(TargetedSelect<DiaryViewTableInfo>, CancellationToken)

From a TargetedSelect<DiaryViewTableInfo>, execute it and return an IEnumerable<DiaryViewRecordData> with the results

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

ToInsertAsync(DiaryViewRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<DiaryViewRecordData>, CancellationToken)

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

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

ToRecordData(DiaryViewRow)

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

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