NameValueListBase in CSLA 10 #4860
Unanswered
DriftInCode
asked this question in
Questions
Replies: 3 comments 1 reply
-
|
This is probably from the work done by @StefanOssendorf, he should be able to provide some insight. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi. I based this on the Dictionary<T, K> implementation, where at least the key is not null. That's why I did the same here. But I don't see any reason why we couldn't relax that restriction. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
For our implementation, it's only the key that is potentially null. |
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.
-
As we were upgrading to .NET 10/CSLA 10, we noticed that all of our value lists that inherited from NameValueListBase had errors. What we realized is that the definition had changed where it no longer allows null values for K, V. Most of our value lists are <int?, string> to support the cases where the value could be optional (so we store NULL on the database side). Since null values are no longer allowed in NameValueListBase, what is the recommended approach? The last thing we want to do is abandon the use of NameValueListBase and have to implement a completely new approach using something like ReadOnlyListBase.
Beta Was this translation helpful? Give feedback.
All reactions