Show / Hide Table of Contents

Class NotifyRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<NotifyTableInfo>)

From a TargetedDataRecord<NotifyTableInfo>, create and populate a NotifyRecordData POCO object

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

FromSelect(TargetedSelect<NotifyTableInfo>)

From a TargetedSelect<NotifyTableInfo>, execute it and return an IEnumerable<NotifyRecordData> with the results

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

FromSelectAsync(TargetedSelect<NotifyTableInfo>, CancellationToken)

From a TargetedSelect<NotifyTableInfo>, execute it and return an IEnumerable<NotifyRecordData> with the results

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

ToInsertAsync(NotifyRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<NotifyRecordData>, CancellationToken)

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

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

ToRecordData(NotifyRow)

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

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