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

Generate MetaData-Classes automatically from model

1 Answer 128 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
uquandux
Top achievements
Rank 1
uquandux asked on 14 Nov 2012, 08:04 AM
Hi everyone,

I have my OA database-model (rlinq) up and running in combination
with a MVC-application. I want to generate Partitial Classes to have
annotations for the different properties so my MVC-application can
handle validation.

According to this manual are MetaData-Classes created manually:
http://www.telerik.com/help/openaccess-orm/getting-started-root-quickstart-sl-wcfria-add-metadata-class.html

My Question is: Is there a way to generate those classes automatically from my database-model?

Best regards,
uquandux

1 Answer, 1 is accepted

Sort by
0
Boris Georgiev
Telerik team
answered on 14 Nov 2012, 04:04 PM
Hi,

Yes, you can generate automatically data annotations to your entity classes based on the metadata model. We have a Code Library article that describes it and provides a template you can use to generate quickly some types of data annotation attributes after you make changes in your model. 

Let me know if you need additional directions.

Regards, Boris Georgiev
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
Data Access Free Edition
Asked by
uquandux
Top achievements
Rank 1
Answers by
Boris Georgiev
Telerik team
Share this question
or