Table of Contents

Class DatabaseIDFieldAttribute

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Specifies to which database column the property maps. Marks this column as an ID column.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class DatabaseIDFieldAttribute : DatabaseFieldAttribute
Inheritance
object
Attribute
DatabaseIDFieldAttribute
Inherited Members
Extension Methods

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.