PropertyBagItemDataServices

Provides data services for the a multi-tenant property bag table.

Namespace:
Inetdev.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Multitenancy.MultitenantDataServices

Constructors

PropertyBagItemDataServices

Default constructor

Signature:
public Void PropertyBagItemDataServices()

Properties

Alias

The alias for the underlaying table.

Signature:
public String Alias { get; set; }

Fields

A dictionary of field configuration for the underlaying table.

Signature:
public IDictionary<String, Field> Fields { get; set; }

Table

The name of the underlaying table.

Signature:
public String Table { get; set; }

Methods

DeleteProperties

Deletes the properties of bagKey for the specified tenantId.

Signature:
public Int32 DeleteProperties(tenantId, bagKey)
Returns

The quantity of records deleted.

Parameters
Name Type Summary
tenantId Int32 Tenant Id.
bagKey String Bag key.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thown when bagKey is null or empty.

GetPropertiesAsync

Gets the properties of bagKey for the specified tenantId.

Signature:
public Task GetPropertiesAsync(tenantId, bagKey)
Returns

A collection of properties.

Parameters
Name Type Summary
tenantId Int32 Tenant Id.
bagKey String Bag key.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thown when bagKey is null or empty.
MissingRequiredPropertyException Thrown when a required property was not properly initialized.