Show / Hide Table of Contents

Class MailInFilterRecordDataExtensions

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

Inheritance
object
MailInFilterRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class MailInFilterRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<MailInFilterTableInfo>)

From a TargetedDataRecord<MailInFilterTableInfo>, create and populate a MailInFilterRecordData POCO object

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

FromSelect(TargetedSelect<MailInFilterTableInfo>)

From a TargetedSelect<MailInFilterTableInfo>, execute it and return an IEnumerable<MailInFilterRecordData> with the results

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

FromSelectAsync(TargetedSelect<MailInFilterTableInfo>, CancellationToken)

From a TargetedSelect<MailInFilterTableInfo>, execute it and return an IEnumerable<MailInFilterRecordData> with the results

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

ToInsertAsync(MailInFilterRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<MailInFilterRecordData>, CancellationToken)

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

ToRecordData(MailInFilterRow)

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