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