Enterprise Library Vlidation

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Posts: 1
Joined: Mon 28 Apr 2014 03:53

Enterprise Library Vlidation

Post by LoxLox » Mon 28 Apr 2014 03:55

Where could I find the right procedure to implement the Enterprise Library Validation mechanism with Entity Developer and/or LinqConnect?

Thank You

Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Enterprise Library Vlidation

Post by MariiaI » Mon 28 Apr 2014 11:05

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.

Post Reply