Class MailAliasRecordDataExtensions
Extension methods to make it easy to fetch MailAliasRecordData objects from the database,
using the infrastructure
Inheritance
MailAliasRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class MailAliasRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<MailAliasTableInfo>)
From a TargetedDataRecord<MailAliasTableInfo>, create and populate a MailAliasRecordData POCO object
Declaration
public static MailAliasRecordData FromRecord(this TargetedDataRecord<MailAliasTableInfo> 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 { MailAliasItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<MailAliasTableInfo>)
From a TargetedSelect<MailAliasTableInfo>, execute it and return an IEnumerable<MailAliasRecordData> with the results
Declaration
public static IEnumerable<MailAliasRecordData> FromSelect(this TargetedSelect<MailAliasTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(MailAliasRecordData)
Extension methods to make it easy to fetch MailAliasRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this MailAliasRecordData record)
Parameters
Returns
ToInserts(IEnumerable<MailAliasRecordData>)
Extension methods to make it easy to fetch MailAliasRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<MailAliasRecordData> records)
Parameters
Returns
ToRecordData(MailAliasRow)
Extension methods to make it easy to fetch MailAliasRecordData objects from the database,
using the infrastructure
Declaration
public static MailAliasRecordData ToRecordData(this MailAliasRow row)
Parameters
Returns