Show / Hide Table of Contents

Class ScreenDefinitionActionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ScreenDefinitionActionTableInfo>)

From a TargetedDataRecord<ScreenDefinitionActionTableInfo>, create and populate a ScreenDefinitionActionRecordData POCO object

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

FromSelect(TargetedSelect<ScreenDefinitionActionTableInfo>)

From a TargetedSelect<ScreenDefinitionActionTableInfo>, execute it and return an IEnumerable<ScreenDefinitionActionRecordData> with the results

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

FromSelectAsync(TargetedSelect<ScreenDefinitionActionTableInfo>, CancellationToken)

From a TargetedSelect<ScreenDefinitionActionTableInfo>, execute it and return an IEnumerable<ScreenDefinitionActionRecordData> with the results

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

ToInsertAsync(ScreenDefinitionActionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ScreenDefinitionActionRecordData>, CancellationToken)

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

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

ToRecordData(ScreenDefinitionActionRow)

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

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