Custom BusinessRule Needs to Access DataPortal #3260
Answered
by
saulyt
MarkOverstreet
asked this question in
Questions
-
So there are instances where we create a business rule that inherits from the BusinessRule class and in certain cases will need to go back to the server using the DataPortal. In previous versions this was not an issue because we just used the static DataPortal class like ...
But in the new version of CSLA you are using dependency injection so I have two questions:
Thanks for any assistance. |
Beta Was this translation helpful? Give feedback.
Answered by
saulyt
Mar 6, 2023
Replies: 1 comment 1 reply
-
IRuleContext has access to the ApplicationContext. You can therefore do something like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MarkOverstreet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IRuleContext has access to the ApplicationContext. You can therefore do something like this: