Class SSmtpServersRecordDataExtensions
Extension methods to make it easy to fetch SSmtpServersRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
SSmtpServersRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class SSmtpServersRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<SSmtpServersTableInfo>)
Declaration
public static SSmtpServersRecordData FromRecord(this TargetedDataRecord<SSmtpServersTableInfo> record)
Parameters
Returns
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
Returns
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 TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this SSmtpServersRecordData record)
Parameters
Returns
ToInserts(IEnumerable<SSmtpServersRecordData>)
Extension methods to make it easy to fetch SSmtpServersRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<SSmtpServersRecordData> records)
Parameters
Returns
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
Returns