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

new domain model

1 Answer 71 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hans
Top achievements
Rank 1
Hans asked on 05 Nov 2010, 05:26 PM
Hi !

Do you have any tutorial how to create a new domain model starting from an empty model and continuing with creating database objects. On your web site I found only "Creating a Domain Model from an Existing Database".

I try to do it by myselft but in rlinq after I create a Meta class and save it it creates me a class classname.generated.vb
I don't like the word "generated" in my class name.

Thank you !
Hans

1 Answer, 1 is accepted

Sort by
0
Accepted
PetarP
Telerik team
answered on 11 Nov 2010, 03:12 PM
Hello Hans,

 If you would like to start with an empty model you just need to select that option on the first page of the add new item wizard. The option is called Empty domain model. Once you do that you can freely construct your model using the toolbox. When you are done with defining your model you just need to run the Update Database wizard. Additional information regarding the wizard can be found here.
As for the .generated we are generating it on purpose. The idea behind it is to ease our users who would like to extend their already generated classes by creating partial classes. If you would like to remove the .generated you can alter our code generation template. The template can be found under 
(install dir)\Telerik\OpenAccess ORM\dsl2010\CodeGenerationTemplates\(language) where 
1. install dir - the directory where you installed OpenAccess
2. language - the programming language you are using
There you will find a template called either DefaultTemplateCS or DefaultTemplateVB. When you open the template in question you should be able to see a line similar to:

<#+     string defaultExtension = ".generated$LanguageSpecificExtension$"; #>
Here you can either remove the .generated or replace it with something that makes more sense to you. 
Please note that it is highly advised that you backup your templates before editing them.
Do not hesitate to contact us if you face any further difficulties.


All the best,
Petar
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
Tags
Getting Started
Asked by
Hans
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or