Command object in CSLA 5.4.2 #2335
Answered
by
rockfordlhotka
Chicagoan2016
asked this question in
Questions
-
Hi All, |
Beta Was this translation helpful? Give feedback.
Answered by
rockfordlhotka
Jun 30, 2021
Replies: 1 comment
-
These days, because we have the analyzer blocking the use of the [Serializable]
public class MyCommand : CommandBase<MyCommand>
{
// declare Id property here
[Create]
[RunLocal]
private void Create(int id)
{
Id = id;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Chicagoan2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These days, because we have the analyzer blocking the use of the
new
keyword, you generally initialize a command object via the create operation.