Show / Hide Table of Contents

Class SMessageblockRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SMessageblockTableInfo>)

From a TargetedDataRecord<SMessageblockTableInfo>, create and populate a SMessageblockRecordData POCO object

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

FromSelect(TargetedSelect<SMessageblockTableInfo>)

From a TargetedSelect<SMessageblockTableInfo>, execute it and return an IEnumerable<SMessageblockRecordData> with the results

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

FromSelectAsync(TargetedSelect<SMessageblockTableInfo>, CancellationToken)

From a TargetedSelect<SMessageblockTableInfo>, execute it and return an IEnumerable<SMessageblockRecordData> with the results

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

ToInsertAsync(SMessageblockRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SMessageblockRecordData>, CancellationToken)

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

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

ToRecordData(SMessageblockRow)

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

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