Show / Hide Table of Contents

Class BinaryObjectRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the BinaryObject table.

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

Please use this class instead of a full BinaryObjectRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding BinaryObjectTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

BinaryObjectRecordData()

Declaration
public BinaryObjectRecordData()

Fields

BinaryData

The binary data itself. Length is limited by the database, generally 1GB seems to be reliably available. Beyond that is database dependent.

Declaration
public Stream BinaryData
Field Value
Type Description
Stream

BinaryObjectId

Primary key

Declaration
public int BinaryObjectId
Field Value
Type Description
Int32

BlobSize

The length, in bytes, of the binary data AS STORED after any encryption and/or zipping. Important to get right, since some databases will not tell us just based on the blob itself!

Declaration
public uint BlobSize
Field Value
Type Description
UInt32

ConceptualType

The type, for instance PHOTO, PERSONPHOTO, or whatever, that is descriptive of what kind of image or data this is

Declaration
public string ConceptualType
Field Value
Type Description
String

Description

A description that is entered by the user, and visible to the user

Declaration
public string Description
Field Value
Type Description
String

ExtraInfo

Extra information, spare field, can be used for anything that makes sense. Should not refer to any particular context, that is something for the BinaryObjectLInk

Declaration
public string ExtraInfo
Field Value
Type Description
String

IsEncrypted

Has the data been encrypted (support for this will come in HDB)

Declaration
public short IsEncrypted
Field Value
Type Description
Int16

IsZipped

Has the data been zipped (support for this will come in HDB)

Declaration
public short IsZipped
Field Value
Type Description
Int16

MimeType

Mime type, describing the technical type (image/jpeg) of the data

Declaration
public string MimeType
Field Value
Type Description
String

OriginalSize

Original size of the binary data, before encryption and/or zipping. This is what the ultimate client will get

Declaration
public uint OriginalSize
Field Value
Type Description
UInt32

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
DateTime

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
Int32

Updated

Last updated when in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
DateTime

UpdatedAssociateId

Last updated by whom

Declaration
public int UpdatedAssociateId
Field Value
Type Description
Int32

UpdatedCount

Number of updates made to this record

Declaration
public short UpdatedCount
Field Value
Type Description
Int16

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
BinaryObjectRecordDataExtensions.ToInsert(BinaryObjectRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top