Click or drag to resize
DatabaseIDFieldAttribute Class
Specifies to which database column the property maps. Marks this column as an ID column.
Inheritance Hierarchy

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public sealed class DatabaseIDFieldAttribute : DatabaseFieldAttribute

The DatabaseIDFieldAttribute type exposes the following members.

Constructors
  NameDescription
Public methodDatabaseIDFieldAttribute
Top
Properties
  NameDescription
Public propertyColumnName
Database column name
(Inherited from DatabaseFieldAttribute.)
Public propertyValueType
Type representing the stored value
(Inherited from DatabaseFieldAttribute.)
Top
Remarks
Information about ID column is used in unit tests to properly fake given type. Use this attribute to mark an ID column of object with dynamic typeinfo. Objects with fixed typeinfo has this information placed in code and therefore fakes can be initialized without using this attribute. Using this attribute on object with fixed typeinfo overrides ID column information in typeinfo.
See Also