CSLA 6 any way to have strongly typed criteria parameters? #2825
Unanswered
michaelcsikos
asked this question in
Questions
Replies: 1 comment 4 replies
-
I hear what you are saying. Using a strongly-typed "DTO" based on I'm open to other suggestions as well if anyone has ideas. |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
Previously with static factory methods it was easy to ensure we were passing the correct parameters for the
DataPortal_XYZ
methods. Now withIDataPortal<T>
we're dealing withparams object[] criteria
so it's easy to make a mistake or introduce a bug. Tests help, of course, but a compile error is better. Is a[Serializable]
criteria class the simplest solution?Is there any advantage gained by usingIt seemsCriteriaBase<T>
?CriteriaBase<T>
is required.Beta Was this translation helpful? Give feedback.
All reactions