Class CustomAttributeType
Provides the description of attribute/field/property that entity can be extended with.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class CustomAttributeType : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<CustomAttributeType>
  Constructors
CustomAttributeType()
Declaration
public CustomAttributeType()
  Properties
DataType
Gets or sets the attribute data type.
Declaration
public AttributeDataType DataType { get; set; }
  Property Value
| Type | Description | 
|---|---|
| AttributeDataType | 
DisplayName
Gets or sets the attribute display name.
Declaration
public string DisplayName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
EntityType
Gets or sets the entity type that attribute belongs to.
Declaration
public EntityType EntityType { get; set; }
  Property Value
| Type | Description | 
|---|---|
| EntityType | 
IsRequired
Gets or sets the flag indicating that attribute value cannot be Null.
Declaration
public bool IsRequired { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
MaxLength
Gets or sets the maximum length of the String attribute.
Declaration
public int? MaxLength { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Nullable<Int32> | 
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
  Property Value
| Type | Description | 
|---|---|
| EntityType | 
Overrides
PortalVisibility
Gets or sets the value indicating how this attribute should be presented in Developer Portal.
Declaration
public AttributeVisibility PortalVisibility { get; set; }
  Property Value
| Type | Description | 
|---|---|
| AttributeVisibility | 
Position
Gets or sets the relative position of the attribute among others.
Declaration
public int Position { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Methods
Equals(CustomAttributeType)
Determines whether the specified attribute type is equal to the current attribute type.
Declaration
public bool Equals(CustomAttributeType other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CustomAttributeType | other | The attribute type to compare with the current attribute type.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True, if attribute types are equal. False, if attribute types are not equal.  | 
      
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare with the current object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal.  | 
      
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| Int32 | Hash code of the current instance.  | 
      
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| String | A string that represents the current object.  | 
      
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
  Returns
| Type | Description | 
|---|---|
| Boolean | True if state is valid; otherwise, false.  |