Click or drag to resize

AttributeWeb Class

Holds a rental object attribute value for specific interval.
Inheritance Hierarchy

Namespace:  Tse.EasyBook.Server.DataContracts
Assembly:  Tse.EasyBook.Server.DataContracts (in Tse.EasyBook.Server.DataContracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class AttributeWeb : AttributeBaseWeb

The AttributeWeb type exposes the following members.

Constructors
  NameDescription
Public methodAttributeWeb
Top
Properties
  NameDescription
Public propertyCode exampleComparerType
When an attribute is used as a search criteria in a rental objects search, this property determines how the attribute, by default, is interpreted.
(Inherited from AttributeBaseWeb.)
Public propertyGroup
The attributes group.
Public propertyId
Unique Id for the entity. This Id is unchanged throughout the entity's lifetime.
(Inherited from DataContractEntityWeb.)
Public propertyName
The name of the attribute
(Inherited from AttributeBaseWeb.)
Public propertyCode exampleNegate
When an attribute is used as a search criteria in a rental objects search, this property determines if the resulting evaluation of Value and ComparerType should be negated.
(Inherited from AttributeBaseWeb.)
Public propertyOrGroup
A list of other attribute criteria that should form an OR group when passed into the search engine. If the parent attribute is of type Attribute, then the parent attribute criteria value will be added to the OR group. If the parent attribute is of type OrGroup, then only the members of this OrGroup collection will form the Or group.
(Inherited from AttributeBaseWeb.)
Public propertyType
Used to tag certain article attributes that must be identified specifically. Possible values are the names of values in the enum ArticleAttributeTypeEnum.
Public propertyValidFrom
Start date. When this attribute is valid.
Public propertyValidTo
End date. If null, the interval is seen as having no expiration.
Public propertyValue
The value of the attribute.
(Inherited from AttributeBaseWeb.)
Public propertyValueType
The value type. This property determines how the attribute value should be interpreted. There are 3 values: Integer, Float, Boolean. For attributes with an integer or float value type it means that they should interpreted as numbers. For attributes with a boolean value type it means they should be interpreted as a yes/no attribute. If a rental object does not have a boolean attribute it is the same as having the attribute with a "no" (or 0) value.
(Inherited from AttributeBaseWeb.)
Top
Remarks
Attributes holds information about a rental object such as build year, capacity, size, distance to sea etc. All attribute values contains a date pair that determines when the attribute is "active". If an atrtibute value has a date range of 01-01-2015 to 31-12-2015 then it can only be seen as existing on the rental object during that period of time. If the end date is null it means that the attribute has no expiry date.
See Also