Show / Hide Table of Contents

Class DashboardTileFieldRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DashboardTileFieldTableInfo>)

From a TargetedDataRecord<DashboardTileFieldTableInfo>, create and populate a DashboardTileFieldRecordData POCO object

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

FromSelect(TargetedSelect<DashboardTileFieldTableInfo>)

From a TargetedSelect<DashboardTileFieldTableInfo>, execute it and return an IEnumerable<DashboardTileFieldRecordData> with the results

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

FromSelectAsync(TargetedSelect<DashboardTileFieldTableInfo>, CancellationToken)

From a TargetedSelect<DashboardTileFieldTableInfo>, execute it and return an IEnumerable<DashboardTileFieldRecordData> with the results

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

ToInsertAsync(DashboardTileFieldRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<DashboardTileFieldRecordData>, CancellationToken)

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

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

ToRecordData(DashboardTileFieldRow)

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

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