Show / Hide Table of Contents

Class MailAliasRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<MailAliasTableInfo>)

From a TargetedDataRecord<MailAliasTableInfo>, create and populate a MailAliasRecordData POCO object

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

FromSelect(TargetedSelect<MailAliasTableInfo>)

From a TargetedSelect<MailAliasTableInfo>, execute it and return an IEnumerable<MailAliasRecordData> with the results

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

FromSelectAsync(TargetedSelect<MailAliasTableInfo>, CancellationToken)

From a TargetedSelect<MailAliasTableInfo>, execute it and return an IEnumerable<MailAliasRecordData> with the results

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

ToInsertAsync(MailAliasRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<MailAliasRecordData>, CancellationToken)

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

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

ToRecordData(MailAliasRow)

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

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