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