-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support for comparing two properties #114
Comments
Yup, that looks cool. Do you want to create an overload for each binary operation, or just |
It will be great to create overload for |
@paw3lx That would be also useful with BeginDate/EndDate/BeginTime/EndTime validations where one have to predate the other. Or both could be made available but I think promoting single 'best' way of doing stuff is the right idea. BTW. I don't like underscore arg names in our code and in examples. Because: "That is a convention used when you don't care about the parameter.". |
I'd go for Arek's suggestion mostly because that is fairly simple to implement and does what it should. I also agree that we should promote "best way" of doing something instead of "couple fine" ways. The only problem I have is that the old syntax will be depricated (at the second version) :D On the one hand we don't have a lot of "fame" right now so "the soon the better". But on the other, it could piss off all folks that use that. @dbarwikowski I summon you ! |
'x', 'a', 'v' ? |
'()' ? |
I think it could be nice to have ability to compare two properties of an object:
.Ensure(m => m.Password, _ => _.IsEqualTo(m => m.RePassword))
What do you think about it?
The text was updated successfully, but these errors were encountered: