BinaryProperty Class
Version  Language 
Represents a property of type binary in the Time Cockpit data model.
Inheritance Hierarchy

OnlineSystem Object
  TimeCockpit.Data DynamicObject
    TimeCockpit.Data.DataModel NamedDynamicObject
      TimeCockpit.Data.DataModel ModelElement
        TimeCockpit.Data.DataModel ModelProperty
          TimeCockpit.Data.DataModel PersistedProperty
            TimeCockpit.Data.DataModel BinaryProperty
              TimeCockpit.Data.DataModel EntityObjectCollectionProperty
              TimeCockpit.Data.DataModel FileProperty

Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data (in TimeCockpit.Data.dll) Version: 1.11.2319.17 (1.11.2319.17)
Syntax

public class BinaryProperty : PersistedProperty
Remarks

Binary properties store binary data either in the database or in the separated blob storage. You can specify where binary data should be stored using the StorageType property. Note that the value of this property must not be changed after the initial creation of the property.

Binary data can be compressed and/or encrypted before storage. You can enable compression and/or encryption using the ContentProcessing property. Note that the value of this property must not be changed after the initial creation of the property.

The class BinaryProperty can handle data in the form of byte[]. However, you can derive from BinaryProperty and accept data in more complex forms there. BinaryProperty cares for saving and loading of the data from storage; you have to provide the necessary serialization and deserialization logic by overriding Unpack( Byte ,  Byte ) and Pack(Object,  Byte ).

See Also