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: SuperOfficeCRMRows
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
TargetedDataRecordSSmtpServersTableInfo 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
TargetedSelectSSmtpServersTableInfo select
Returns
Type Description
IEnumerableSSmtpServersRecordData
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
TargetedSelectSSmtpServersTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableSSmtpServersRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(SSmtpServersRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<SSmtpServersRecordData>, CancellationToken)

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

ToRecordData(SSmtpServersRow)

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