Search Results for

    Show / Hide Table of Contents

    Class Property

    Represents a property with name and value (optional) or/and an attached file (optional) that can be assign to a repository entity (like service, node, operation, etc).

    Inheritance
    object
    DomainObjectBase
    Property
    Implements
    IValidator
    IExtensibleDataObject
    IEquatable<Property>
    Inherited Members
    DomainObjectBase.Id
    DomainObjectBase.Key
    DomainObjectBase.Created
    DomainObjectBase.Updated
    DomainObjectBase.IsMajorObject
    DomainObjectBase.ErrorMessage
    DomainObjectBase.ExtensionData
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    [DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
    [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Property")]
    public sealed class Property : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Property>

    Constructors

    Property()

    Initializes an empty instance.

    Declaration
    public Property()

    Property(Property)

    Initializes a new instance by copying data from the provided Property.

    Declaration
    public Property(Property property)
    Parameters
    Type Name Description
    Property property

    Property to be initialized from.

    Properties

    EntityId

    Gets or sets the database identifier of an entity that property belongs to.

    Declaration
    public int EntityId { get; set; }
    Property Value
    Type Description
    int
    Remarks

    This property is not serializable as the object is always used in the context of parent entity.

    EntityType

    Gets or sets the type of entity (like Service, Node, Operation, etc) that property belongs to.

    Declaration
    public EntityType EntityType { get; set; }
    Property Value
    Type Description
    EntityType
    Remarks

    This property is not serializable as the object is always used in the context of parent entity.

    FileId

    Gets or sets the database identifier of the attached binary file.

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public int? FileId { get; set; }
    Property Value
    Type Description
    int?

    FileKey

    Gets the unique identifier of the attached binary file.

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public Guid? FileKey { get; }
    Property Value
    Type Description
    Guid?

    Name

    Gets or sets the property name.

    Declaration
    [DataMember]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    ObjectType

    Gets object type identifier.

    Declaration
    public override EntityType ObjectType { get; }
    Property Value
    Type Description
    EntityType
    Overrides
    DomainObjectBase.ObjectType

    PropertyType

    Gets or sets the property content type.

    Declaration
    [DataMember]
    public PropertyType PropertyType { get; set; }
    Property Value
    Type Description
    PropertyType

    Value

    Gets or sets the text value of the property (up to 2048 characters) (optional).

    Declaration
    [DataMember(EmitDefaultValue = false)]
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    Equals(Property)

    Determines whether the specified object is equal to the current object.

    Declaration
    public bool Equals(Property other)
    Parameters
    Type Name Description
    Property other

    The object to compare with the current object.

    Returns
    Type Description
    bool

    True, if objects are equal. False, if objects 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
    bool

    True, if objects are equal. False, if objects are not equal.

    Overrides
    DomainObjectBase.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code of the current instance.

    Overrides
    DomainObjectBase.GetHashCode()

    IsMatch(Property, Property)

    Returns flag indicating that provided instances represent the same entity, i.e. the object's natural keys are the same. This method assumes that both instances are assigned to the same parent object.

    Declaration
    public static bool IsMatch(Property property1, Property property2)
    Parameters
    Type Name Description
    Property property1

    First instance to be compared.

    Property property2

    Second instance to be compared.

    Returns
    Type Description
    bool

    True, if provided instances represent the same entity. False, otherwise.

    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
    DomainObjectBase.ToString()

    Validate()

    Evaluates the state of this object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    bool

    True if state is valid; otherwise, false.

    Overrides
    DomainObjectBase.Validate()

    Implements

    IValidator
    IExtensibleDataObject
    IEquatable<T>
    In This Article
    Back to top Nevatech Sentinet 6.7 Online Documentation