Specifies the type of class instance that will represent each database record / object. The type must have a constructor with argument of type DatabaseObjects.DatabaseObjects. This is the same arguments that are required for a class that inherits from DatabaseObject. Alternatively, an empty constructor if available will be used. The type must implement IDatabaseObject or inherit from DatabaseObject. Using this attribute is logically equivalent to overridding the ItemInstance function.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
public class ItemInstanceAttribute : Attribute
Visual Basic
Public Class ItemInstanceAttribute _
	Inherits Attribute
Visual C++
public ref class ItemInstanceAttribute : public Attribute

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    DatabaseObjects..::..ItemInstanceAttribute

See Also