Show / Hide Table of Contents

Class SSmtpServersRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SSmtpServersTableInfo>)

From a TargetedDataRecord<SSmtpServersTableInfo>, create and populate a SSmtpServersRecordData POCO object

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

FromSelect(TargetedSelect<SSmtpServersTableInfo>)

From a TargetedSelect<SSmtpServersTableInfo>, execute it and return an IEnumerable<SSmtpServersRecordData> with the results

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

FromSelectAsync(TargetedSelect<SSmtpServersTableInfo>, CancellationToken)

From a TargetedSelect<SSmtpServersTableInfo>, execute it and return an IEnumerable<SSmtpServersRecordData> with the results

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

ToInsertAsync(SSmtpServersRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SSmtpServersRecordData>, CancellationToken)

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

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

ToRecordData(SSmtpServersRow)

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

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