Show / Hide Table of Contents

Class SPictureFolderRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SPictureFolderTableInfo>)

From a TargetedDataRecord<SPictureFolderTableInfo>, create and populate a SPictureFolderRecordData POCO object

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

FromSelect(TargetedSelect<SPictureFolderTableInfo>)

From a TargetedSelect<SPictureFolderTableInfo>, execute it and return an IEnumerable<SPictureFolderRecordData> with the results

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

FromSelectAsync(TargetedSelect<SPictureFolderTableInfo>, CancellationToken)

From a TargetedSelect<SPictureFolderTableInfo>, execute it and return an IEnumerable<SPictureFolderRecordData> with the results

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

ToInsertAsync(SPictureFolderRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SPictureFolderRecordData>, CancellationToken)

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

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

ToRecordData(SPictureFolderRow)

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

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