Show / Hide Table of Contents

Class SSmtpServersRecordDataExtensions

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

Inheritance
Object
SSmtpServersRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class SSmtpServersRecordDataExtensions : Object

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();

ToInsert(SSmtpServersRecordData)

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

Declaration
public static Insert ToInsert(this SSmtpServersRecordData record)
Parameters
Type Name Description
SSmtpServersRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<SSmtpServersRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<SSmtpServersRecordData> records)
Parameters
Type Name Description
IEnumerable<SSmtpServersRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(SSmtpServersRow)

Extension methods to make it easy to fetch SSmtpServersRecordData objects from the database, using the 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