Comments (10)
Comment created by @GeertvanHorrik:
How would this translate into a validator? Can you give us more information how you see this? For example, would the ValidateMeeting provide an IValidator implementation?
from catel.
Comment created by @GeertvanHorrik:
concerning validation at class (entity) level:
http://jeffhandley.com/archive/2010/10/12/EntityLevelValidation.aspx
This describes it pretty good (especially the first paragraph)…
from catel.
Comment created by @GeertvanHorrik:
I don't want people having to specify both the validation class and the method. Still considering what's the best way to implement this.
from catel.
Comment created by @GeertvanHorrik:
Naming conventions are my first thought, but I don't want to force other developers to be forced into a specific naming convention.
from catel.
Comment created by facos:
Would it be possible to support just a ValidationAttribute at entity level?
I'm also not a friend of specifying both the validation class and the method but
since the CustomValidationAttribute is just a derivation of ValidationAttribute
everybody has the choice to take or not....
from catel.
Comment created by @GeertvanHorrik:
Improved the Validator implementation. Now the ModelBase checks once whether a IValidatorProvider is registered in the ServiceLocator. If so, it will automatically get the IValidator from the IValidatorProvider.
It is still overridable per model.
from catel.
Comment created by @GeertvanHorrik:
Written custom AttributeValidatorProvider which caches and should be very, very fast and is registered by default.
Now up to writing unit tests.
from catel.
Comment created by @GeertvanHorrik:
See the documentation:
https://catelproject.atlassian.net/wiki/display/CTL/Validationviaspecialmodelvalidators
from catel.
Issue was closed with resolution "Fixed"
from catel.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from catel.
Related Issues (20)
- question.is it possible to use with prism. HOT 1
- Injecting IAuthenticationProvider does not affect Commands HOT 1
- Allow serialization of Classes implementing IDictionary<TKey,TValue> HOT 1
- Consider specifying Foreground Color in InfoBarMessageControl HOT 7
- [ ] WPF d:DataContent compile error HOT 2
- Implement nullable support HOT 1
- Serializer trapped in endless loop when deserializing HOT 2
- Remove unnecessary references for netfx(net4x) targets HOT 2
- Removing a ChildViewModel does not re-validate the ParentViewModel HOT 2
- Deadlock in ServiceLocator HOT 4
- Cannot deserialize model from encrypted string
- StringToObjectHelper.ToRightType returns wrong values for type byte HOT 2
- Duplicate subscription to window completed callback in UIVisualizerService
- Change Execute and CanExecute methods for CommandContainerBase to public
- "Serializing delegates is not supported on this platform" exception in ChildAwareModelBase.BeginEdit method HOT 4
- Remove TypeExtensions.IsSerializableEx
- Disable TypeCache reflection only checks
- Prevent duplicate property change notification when using ViewModelToModel attribute on models that don't check for equality before raising HOT 2
- Validation for UserControl problems
- CacheStorage should not enable auto expiration by default without default policy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catel.