Show / Hide Table of Contents

Class MsFilterRecordDataExtensions

Extension methods to make it easy to fetch MsFilterRecordData objects from the database, using the infrastructure

Inheritance
Object
MsFilterRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
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
Type Name Description
TargetedDataRecord<MsFilterTableInfo> record
Returns
Type Description
MsFilterRecordData
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
Type Name Description
TargetedSelect<MsFilterTableInfo> select
Returns
Type Description
IEnumerable<MsFilterRecordData>
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
Type Name Description
MsFilterRecordData record
Returns
Type Description
Insert

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
Type Name Description
IEnumerable<MsFilterRecordData> records
Returns
Type Description
IEnumerable<Insert>

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
Type Name Description
MsFilterRow row
Returns
Type Description
MsFilterRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top