PropertyBagItem

PropertyBagItem implements a data model for property that belongs to a property bag.

Namespace:
Inetdev.Commons
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataModel
Implements:
System.IEquatable{Inetdev.Commons.PropertyBagItem}

Constructors

PropertyBagItem

Default constructor

Signature:
public Void PropertyBagItem()

PropertyBagItem

Initializes a new instance of PropertyBagItem.

Signature:
public Void PropertyBagItem(bagKey, propertyName)
Parameters
Name Type Summary
bagKey String The partition key.
propertyName String The property name.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when bagKey is or empty.
ArgumentNullOrEmptyException Thrown when propertyName is or empty.

PropertyBagItem

Initializes a new instance of PropertyBagItem.

Signature:
public Void PropertyBagItem(bagKey, propertyName, propertyValue)
Parameters
Name Type Summary
bagKey String The partition key.
propertyName String The property name.
propertyValue String The value of the property.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when bagKey is or empty.
ArgumentNullOrEmptyException Thrown when propertyName is or empty.

Properties

BagKey

Partition key of this property.

Signature:
public String BagKey { get; set; }

EnforceModelValidation

Gets whether the model validation must be enforced.

Signature:
public Boolean EnforceModelValidation { get; }

PropertyName

Name of the property.

Signature:
public String PropertyName { get; set; }

PropertyValue

Value of the property.

Signature:
public String PropertyValue { get; set; }

Methods

Equals

Checks whether other is equal to this object.

Signature:
public Boolean Equals(other)
Parameters
Name Type Summary
other PropertyBagItem The object to check equality to.

Equals

Checks whether obj is equal to this object.

Signature:
public Boolean Equals(obj)
Parameters
Name Type Summary
obj Object The object to compare this object to.

GetHashCode

Serves as the default hash function. Not required, implemented to avoid compiler warning.

Signature:
public Int32 GetHashCode()

Load

Initializes a new instance of PropertyBagItem and loads it data from the underlaying repository.

Signature:
public PropertyBagItem Load(bagKey, propertyName)
Parameters
Name Type Summary
bagKey String The partition key.
propertyName String The property name.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when bagKey is or empty.
ArgumentNullOrEmptyException Thrown when propertyName is or empty.

LoadAsync

Initializes a new instance of PropertyBagItem and loads it data from the underlaying repository asyncronously.

Signature:
public Task<PropertyBagItem> LoadAsync(bagKey, propertyName)
Parameters
Name Type Summary
bagKey String The partition key.
propertyName String The property name.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when bagKey is or empty.
ArgumentNullOrEmptyException Thrown when propertyName is or empty.

ToString

Returns a textual representation of this PropertyBagItem.

Signature:
public String ToString()