ProtectedconstructorStatic ReadonlyCROSS_StaticInstanceEnforces all declarative and programmatic cross-entity policies before deleting entity.
Returns null when allowed, or a refusal error message when vetoed.
Enforces all declarative and programmatic cross-entity policies before saving entity.
Returns null when allowed, or a refusal error message when vetoed.
OptionalsaveContext: SaveContextThe Global Object Store is a place to store global objects that need to be shared across the application. Depending on the execution environment, this could be the window object in a browser, or the global object in a node environment, or something else in other contexts. The key here is that in some cases static variables are not truly shared because it is possible that a given class might have copies of its code in multiple paths in a deployed application. This approach ensures that no matter how many code copies might exist, there is only one instance of the object in question by using the Global Object Store.
Notifies the engine that entity was created, updated, or deleted on provider, immediately
invalidating any cached parent status snapshots for that entity and primary key in the active
transaction scope.
Batch pre-evaluation and cache pre-warming across multiple entity mutations (MJ.SaveEntityGraph,
TransactionGroupBase.Submit, or bulk imports). Returns null when all items pass, or the first
refusal message encountered.
OptionaltransactionGroup: objectBulk-primes declarative parent-lock snapshots into the active scope for a batch or graph
of entity operations without marking individual items as pre-evaluated, so each item's
own EnforceBeforeSave / EnforceBeforeDelete still runs after Prepare(), RLS, and
before-save hooks while enjoying $O(1)$ cache hits on parent state lookups.
OptionaltransactionGroup: objectResolves or creates the evaluation scope for provider (and optional transactionGroup),
partitioned by contextUser?.ID so two different users never share RLS-scoped parent snapshots:
transactionGroup is supplied (items enrolling into / submitting a TransactionGroupBase),
returns the shared memoizing scope bound to that (TransactionGroupBase, user) pair.TransactionScopeCacheKey !== null), returns the shared
memoizing scope bound to that (transactionEpoch, user) pair.OptionalcontextUser: UserInfoOptionaltransactionGroup: objectProtected StaticgetReturns the singleton instance of the class. If the instance does not exist, it is created and stored in the Global Object Store. If className is provided it will be used as part of the key in the Global Object Store, otherwise the actual class name will be used. NOTE: the class name used by default is the lowest level of the object hierarchy, so if you have a class that extends another class, the lowest level class name will be used.
OptionalclassName: string
Process-wide singleton managing declarative and programmatic cross-entity save/delete policies with transaction-scoped memoization and batch pre-warming.