Show / Hide Table of Contents

Class BinaryObjectRecordDataExtensions

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

Inheritance
Object
BinaryObjectRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class BinaryObjectRecordDataExtensions : Object

Methods

FromRecord(TargetedDataRecord<BinaryObjectTableInfo>)

From a TargetedDataRecord<BinaryObjectTableInfo>, create and populate a BinaryObjectRecordData POCO object

Declaration
public static BinaryObjectRecordData FromRecord(this TargetedDataRecord<BinaryObjectTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<BinaryObjectTableInfo> record
Returns
Type Description
BinaryObjectRecordData
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 { BinaryObjectItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<BinaryObjectTableInfo>)

From a TargetedSelect<BinaryObjectTableInfo>, execute it and return an IEnumerable<BinaryObjectRecordData> with the results

Declaration
public static IEnumerable<BinaryObjectRecordData> FromSelect(this TargetedSelect<BinaryObjectTableInfo> select)
Parameters
Type Name Description
TargetedSelect<BinaryObjectTableInfo> select
Returns
Type Description
IEnumerable<BinaryObjectRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(BinaryObjectRecordData)

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

Declaration
public static Insert ToInsert(this BinaryObjectRecordData record)
Parameters
Type Name Description
BinaryObjectRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<BinaryObjectRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BinaryObjectRecordData> records)
Parameters
Type Name Description
IEnumerable<BinaryObjectRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(BinaryObjectRow)

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

Declaration
public static BinaryObjectRecordData ToRecordData(this BinaryObjectRow row)
Parameters
Type Name Description
BinaryObjectRow row
Returns
Type Description
BinaryObjectRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top