This is a migrated thread and some comments may be shown as answers.

Implementing Validation Rules with OpenAccess

10 Answers 195 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
shawn reagan
Top achievements
Rank 1
shawn reagan asked on 23 Jul 2010, 03:25 AM
I was just seeing what is the recommended practice for enforcing validation rules when using OpenAccess classes?  Should I use Enterprise Library or is there an easier implementation?

i.e.:  Person object.
FirstName - Required... MaxLength 20
DateOfBirth - Can't be in the future
etc...
Thank you.

10 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 26 Jul 2010, 10:45 AM
Hi shawn reagan,

Currently the Validation Application Block from the Enterprise Library seems like a decent choice.
You must have in mind that inserting attributes on properties in the code generated by OpenAccess is not supported out of the box currently. In order to do this, you will have to change the code generation templates.

For the Q3 2010 release of OpenAccess we have planned to implement functionality in the visual designer that will allow defining attributes on properties of persistent classes, that will be used in the generated code.

However if you are using the Validation Application Block there are two ways to define your validation rules without using attributes:
1. create validation rules by configuring the respective validator objects using code
2. storing the validation rules configuration in the application configuration file

I hope this helps.

Best wishes,
Jordan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mitch Wagers
Top achievements
Rank 1
answered on 06 Dec 2010, 09:12 PM
Do you have an example of this with Q3 2010?
0
Jordan
Telerik team
answered on 09 Dec 2010, 10:32 AM
Hi Mitch Wagers,

Unfortunately the attribute definition functionality for the visual designer had to be cut off the Q3 2010 release of OpenAccess.
This functionality is still on our TODO list and we will be working on it for the Q1 2011 release of OpenAccess.
As always, any feedback that you may have is welcome.

All the best,
Jordan
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
muhammad
Top achievements
Rank 1
answered on 11 May 2011, 05:37 AM
any update on the " attribute definition functionality for the visual designer" ???
0
Jordan
Telerik team
answered on 13 May 2011, 07:09 AM
Hello Mitch Wagers,

I regret to inform you  that the attribute definition functionality for the visual designer did not make it into the Q1 2011 release of OpenAccess. Unfortunately I cannot give you a t the moment a time frame when this functionality will be implemented.

Greetings,
Jordan
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
Sebastian
Top achievements
Rank 2
answered on 09 Jan 2012, 04:05 PM
any update on Implementing Validation Rules with OpenAccess
0
Ivailo
Telerik team
answered on 12 Jan 2012, 03:12 PM
Hi Sebastian,

The validation rules have not yet been implemented due to their lower relative priority in comparison to other features. We have opened a Public Issue Tracking System entry where you can track the progress of the feature and more importantly - vote for the implementation.

As visible in the entry, we are thinking about adding Data Annotations support for this purpose, but we would like to get some feedback first to be sure that it is valuable for many people.

We appreciate any opinions or remarks for that matter.

All the best,
Ivailo
the Telerik team

SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

0
Craig
Top achievements
Rank 1
answered on 14 Feb 2014, 09:35 AM
Hi
Has this feature been implemented in Data Access (Q3 2013 SP1)?

The issue tracking entry link seems to be broken.

Thanks
Craig
0
Craig
Top achievements
Rank 1
answered on 14 Feb 2014, 10:27 AM
I've just found out about IDataErrorInfo which I'm looking into. 
Here's a link How to: Implement the IDataErrorInfo Interface

0
Ivailo
Telerik team
answered on 14 Feb 2014, 11:18 AM
Hello Craig,

You are on the right track. Indeed, some level of validation capabilities were implemented as part of our code generation settings in the Model Settings dialog, namely the Data Annotation attributes, INotifyPropertyChanged and IDataErrorInfo approaches. Therefore, when the deprecated PITS system was brought down and the new feedback portal has been introduced, we have not migrated the item you are probably looking for.

Do not hesitate to let us know if you experience any issues with the current validation options. If you have any new feature requests, I would encourage you to post in the feedback portal, where it will get exposure to our community and potentially votes for it's implementation priority.


Regards,
Ivailo
Telerik
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
Tags
General Discussions
Asked by
shawn reagan
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Mitch Wagers
Top achievements
Rank 1
muhammad
Top achievements
Rank 1
Sebastian
Top achievements
Rank 2
Ivailo
Telerik team
Craig
Top achievements
Rank 1
Share this question
or