CommandBase requires [Create] method? #2297
Unanswered
michaelcsikos
asked this question in
Questions
Replies: 1 comment 1 reply
-
In CSLA 6 the base class methods are being entirely removed, as they are superfluous. You should be able to implement an empty |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following used to be allowed:
This now produces a
CSLA0011: CSLA business objects should not be created outside of a ObjectFactory instance
error, so I assume the fix is:However, this also throws without an empty
[Create]
method, but there's no warning or error from the CSLA analyzers.Is this the only solution? Is there any reason why I shouldn't inherit
CommandBase
to add a virtualCreate()
method?EDIT
The
[Create]
requirement seems a bit strange given thatCommandBase
treatsDataPortal_Create
as unsupported:Beta Was this translation helpful? Give feedback.
All reactions