ParameterDataService

Provides data services for the a multi-tenant parameter table.

Namespace:
KpokPatagon.Multitenancy.Commons.Parameters
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Remarks

This service does not have any configuration for the required services for it to work.

All required services like the CommandBuilder and DataModelCommandBuilder must be configured by a DataServiceOptions<ParameterDataService> configuration within the dependency injection service collection.

Constructors

ParameterDataService

Default constructor

Signature:
public Void ParameterDataService()

Properties

Alias

The alias for the underlaying table.

Signature:
public String Alias { get; set; }

Fields

A collection of Fields that defines the table columns.

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

Table

The name of the underlaying table.

Signature:
public String Table { get; set; }

Methods

GetParameters

Gets a collection of parameters with the specified names.

Signature:
public IList GetParameters(tenantId, params names)
Parameters
Name Type Summary
tenantId Int32 The tenant id for filter the parameters.
names String[] A collection of parameter names to look for.