CompressForAuditAttribute ClassProvincial Approach to Student Information API
Attribute used to classify a DataContract whose audit information can be uniquely identified and reconstructed based on a compressed set of the DataMember properties it contains.
Inheritance Hierarchy

SystemObject
  SystemAttribute
    PASI.DataContract.AttributesCompressForAuditAttribute

Namespace: PASI.DataContract.Attributes
Assembly: PASI.DataContract (in PASI.DataContract.dll) Version: 9.25.26.0 (9.25.26.0)
Syntax

public class CompressForAuditAttribute : Attribute

The CompressForAuditAttribute type exposes the following members.

Constructors

  NameDescription
Public methodCompressForAuditAttribute
Create an instance of the attribute.
Top
Properties

  NameDescription
Public propertyIdPropertyName
(Optional) Name of the property within the data contract that should be used to extract as the identifier of the object NOTE: By default the property name "RefId" will be assumed as it is very common
Public propertyReplacementTypeName
(Optional) Static name to be used to identify the object being compressed, overrides the default usage of the class name of the decorated data contract. NOTE: By default the class name of the data contract will be used as the Type, secondly the TypePropertyName will be used (if provided) to extract the Type from a property on the decorated data contract. If TypePropertyName is provided, this property will be ignored.
Public propertyTypePropertyName
(Optional) Name of the property within the data contract that should be used to extract the Type of the decorated object. This should only be used if the Data contract this attribute is decorating is not viable. For instance CodeValueInfo NOTE: By default the class name of the data contract will be used as Type, only needed if this default behavior should be overridden.
Public propertyVersionPropertyName
(Optional) Name of the property within the data contract that should be used to extract the version of the object NOTE: By default the property name "PASICoreVersion" will be assumed as it is very common
Top
Remarks

By default the minimum DataMembers required to compress a DataContract are the following * Identifier (named RefId by default), * Core Version of the object defined by the Identifier (named PASICoreVersion by default) * Object Type (name of the DataContract this attribute references by default)
See Also

Reference