MultitenantDataModelModelBinder

Sets the partition key property of the IDataModel and if there are properties with protection settings protects the properties by encrypting or hashing them.

Namespace:
KpokPatagon.AspNet.Multitenancy.Binders
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Constructors

MultitenantDataModelModelBinder

Initializes a new instance of MultitenantDataModelModelBinder.

Signature:
public Void MultitenantDataModelModelBinder(cryptographer, defaultBinder)
Parameters
Name Type Summary
cryptographer ICryptographer
defaultBinder IModelBinder

Methods

BindModelAsync

Binds the model.

Signature:
public Task BindModelAsync(bindingContext)
Parameters
Name Type Summary
bindingContext ModelBindingContext