Show / Hide Table of Contents

Class BinaryObjectRecordDataExtensions

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

Inheritance
System.Object
BinaryObjectRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class BinaryObjectRecordDataExtensions

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
System.Collections.Generic.IEnumerable<BinaryObjectRecordData>
Examples
            var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
            var result = s.FromSelect();

ToInsert(BinaryObjectRecordData)

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

ToInserts(IEnumerable<BinaryObjectRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BinaryObjectRecordData> records)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<BinaryObjectRecordData> records
Returns
Type Description
System.Collections.Generic.IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top