Show / Hide Table of Contents

Class DiaryViewRowRecordDataExtensions

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

Inheritance
object
DiaryViewRowRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class DiaryViewRowRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<DiaryViewRowTableInfo>)

From a TargetedDataRecord<DiaryViewRowTableInfo>, create and populate a DiaryViewRowRecordData POCO object

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

FromSelect(TargetedSelect<DiaryViewRowTableInfo>)

From a TargetedSelect<DiaryViewRowTableInfo>, execute it and return an IEnumerable<DiaryViewRowRecordData> with the results

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

FromSelectAsync(TargetedSelect<DiaryViewRowTableInfo>, CancellationToken)

From a TargetedSelect<DiaryViewRowTableInfo>, execute it and return an IEnumerable<DiaryViewRowRecordData> with the results

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

ToInsertAsync(DiaryViewRowRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<DiaryViewRowRecordData>, CancellationToken)

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

ToRecordData(DiaryViewRowRow)

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