Page 1 of 1

Enterprise Library Vlidation

Posted: Mon 28 Apr 2014 03:55
by LoxLox
Where could I find the right procedure to implement the Enterprise Library Validation mechanism with Entity Developer and/or LinqConnect?

Thank You
Lox

Re: Enterprise Library Vlidation

Posted: Mon 28 Apr 2014 11:05
by MariiaI
To set the validation rules for entity properties, please open your model, in the Model Explorer (the Model Explorer can be opened by selecting Model Explorer from the Entity Developer submenu of the Tools menu) select Properties from the context menu of the used template (e.g. LinqConnect) and set the Validation Framework property to Enterprise Library.
After you have set the Validation Framework, you can select a particular entity property on a diagram (or in Model Explorer) and initialize the needed attributes from the Validation section in the Properties window.

Please refer to the corresponding topic in the Entity Developer documentation: Basic Workflows-> Code generation-> Entity Property Validation.
JIC: when working with Validation Framework = Enterprise Library, this extension should be installed additionally: http://msdn.microsoft.com/library/cc467894.aspx

Please specify if you encounter any problems with this.