Show / Hide Table of Contents

Class MessageIdRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<MessageIdTableInfo>)

From a TargetedDataRecord<MessageIdTableInfo>, create and populate a MessageIdRecordData POCO object

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

FromSelect(TargetedSelect<MessageIdTableInfo>)

From a TargetedSelect<MessageIdTableInfo>, execute it and return an IEnumerable<MessageIdRecordData> with the results

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

FromSelectAsync(TargetedSelect<MessageIdTableInfo>, CancellationToken)

From a TargetedSelect<MessageIdTableInfo>, execute it and return an IEnumerable<MessageIdRecordData> with the results

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

ToInsertAsync(MessageIdRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<MessageIdRecordData>, CancellationToken)

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

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

ToRecordData(MessageIdRow)

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

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