Show / Hide Table of Contents

Class SORTemplateRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SORTemplateTableInfo>)

From a TargetedDataRecord<SORTemplateTableInfo>, create and populate a SORTemplateRecordData POCO object

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

FromSelect(TargetedSelect<SORTemplateTableInfo>)

From a TargetedSelect<SORTemplateTableInfo>, execute it and return an IEnumerable<SORTemplateRecordData> with the results

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

FromSelectAsync(TargetedSelect<SORTemplateTableInfo>, CancellationToken)

From a TargetedSelect<SORTemplateTableInfo>, execute it and return an IEnumerable<SORTemplateRecordData> with the results

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

ToInsertAsync(SORTemplateRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SORTemplateRecordData>, CancellationToken)

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

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

ToRecordData(SORTemplateRow)

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

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