Can I make business rules only execute on the server side? #4633
Answered
by
StefanOssendorf
ncqingchuan
asked this question in
Questions
-
I have a rule that verifies that the data is not duplicated, and the rule queries the database. But I'm using Blazor WASM standalone. When the data is validated, the front-end call the rule to query the SQL Server database, which results in an exception. Is it possible to make this rule only available on the server side. |
Beta Was this translation helpful? Give feedback.
Answered by
StefanOssendorf
Apr 11, 2025
Replies: 1 comment
-
Hi. You can access the execution location via the rule contexts application context to check whether you are running on the server or client. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ncqingchuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. You can access the execution location via the rule contexts application context to check whether you are running on the server or client.
Hth