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