Show / Hide Table of Contents

Class SPictureEntryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SPictureEntryTableInfo>)

From a TargetedDataRecord<SPictureEntryTableInfo>, create and populate a SPictureEntryRecordData POCO object

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

FromSelect(TargetedSelect<SPictureEntryTableInfo>)

From a TargetedSelect<SPictureEntryTableInfo>, execute it and return an IEnumerable<SPictureEntryRecordData> with the results

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

FromSelectAsync(TargetedSelect<SPictureEntryTableInfo>, CancellationToken)

From a TargetedSelect<SPictureEntryTableInfo>, execute it and return an IEnumerable<SPictureEntryRecordData> with the results

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

ToInsertAsync(SPictureEntryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SPictureEntryRecordData>, CancellationToken)

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

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

ToRecordData(SPictureEntryRow)

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

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