You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Transformers: How to change transformer lock mode?

SetTransformerLock method allows you to change transformer lock mode for a given transformer.

Syntax

void SetTransformerLock(string name, TransformerLockMode lockMode);

Parameters
name string name of a transformer to change lock mode for
lockMode TransformerLockMode new transformer lock mode

Example

store.DatabaseCommands.SetTransformerLock("Orders/Company", TransformerLockMode.LockedIgnore);