validation-application-bl

MS Validation Block or Workflow Rules engine?

牧云@^-^@ 提交于 2019-12-06 15:52:12
问题 For a large application that will be developed, we are in the process of selecting a Validation framework. Although the Workflow Rules engine is not strictly a Validation framework, it can be used by itself without using the Workflow foundation. It appears to give flexibility of specifying the rules in a database that is used at runtime. However, it appears that you cannot specify rules in the code. If greater flexibility is one of the requirements (not necessarily that the rules need to be

Which validation framework to choose: Spring Validation or Validation Application Block (Enterprise LIbrary 4.0)?

﹥>﹥吖頭↗ 提交于 2019-11-30 05:36:43
I am trying to choose one of the validation frameworks for a major application, and while both options seem enticing, I was wondering whether there are any specific pros and cons I should be aware of before committing to one or the other. Validation with attributes is not best solution in my view. Firstly you have to reference infrastructure in domain model. Secondly you don't have any chance to add validation to compiled classes. Lastly you can't validate complex logic with attributes and you have to make Validate method to entity and that just seems awkward. In my opinion validation should

Which validation framework to choose: Spring Validation or Validation Application Block (Enterprise LIbrary 4.0)?

别说谁变了你拦得住时间么 提交于 2019-11-29 03:26:20
问题 I am trying to choose one of the validation frameworks for a major application, and while both options seem enticing, I was wondering whether there are any specific pros and cons I should be aware of before committing to one or the other. 回答1: Validation with attributes is not best solution in my view. Firstly you have to reference infrastructure in domain model. Secondly you don't have any chance to add validation to compiled classes. Lastly you can't validate complex logic with attributes

Validate assemblies and namespaces in VAB config file

非 Y 不嫁゛ 提交于 2019-11-28 11:50:32
We are using version 4.1 of the validation application block. I am relatively new to it so I was wondering if it had the ability to either abstract out the configured namespaces and assemblies or otherwise provide proper validation of their existence? We had an issue recently where someone moved a class and didn't update the validation configuration file with the new namespace. As a result the validations were no longer being applied to the object. The application block seems to just ignore the discrepancies. Unfortunately this was not caught during the normal QA cycle. Is there any built in

Validate assemblies and namespaces in VAB config file

主宰稳场 提交于 2019-11-27 06:30:50
问题 We are using version 4.1 of the validation application block. I am relatively new to it so I was wondering if it had the ability to either abstract out the configured namespaces and assemblies or otherwise provide proper validation of their existence? We had an issue recently where someone moved a class and didn't update the validation configuration file with the new namespace. As a result the validations were no longer being applied to the object. The application block seems to just ignore