new domain model

Thread is closed for posting
2 posts, 1 answers
  1. Hans
    Hans avatar
    49 posts
    Member since:
    Jul 2010

    Posted 05 Nov 2010 Link to this post

    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 !
  2. Answer
    PetarP avatar
    754 posts

    Posted 11 Nov 2010 Link to this post

    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,
    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
Back to Top