-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark CriteriaBase as obsolete #4467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to ignore the "Double private" comments. But we should guide our users more how to replace the criteria base.
Samples/BusinessRuleDemo/BusinessRuleDemo/BusinessRuleDemo.csproj
Outdated
Show resolved
Hide resolved
Source/Csla/CriteriaBase.cs
Outdated
@@ -19,6 +19,7 @@ namespace Csla | |||
/// derived in a business class. | |||
/// </summary> | |||
[Serializable] | |||
[Obsolete("Use normal .NET or CSLA types", false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should explain that more in detail.
"Use a .Net POCO with a custom serializer or switch to ReadOnlyBase with creation through a dataportal to get a working instance. We recommend the POCO serializer. For more information please check the upgrade guide to CSLA v9"
docs/Upgrading to CSLA 9.md
Outdated
|
||
The `CriteriaBase` class is now obsolete. You should use normal .NET or CSLA-derived types for criteria values instead. | ||
|
||
The most direct replacement for a complex criteria class is to subclass `ReadOnlyBase`. This is because criteria classes are typically read-only, and `ReadOnlyBase` provides the necessary functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the remark that those types must be created through a data portal and not with new
.
What do we recommend? The POCO serializer or a custom one? Maybe we should mention that.
Closes #4462