Forward-Mapping not generating tables

Thread is closed for posting
2 posts, 0 answers
  1. Jorge Fernandez
    Jorge Fernandez avatar
    1 posts
    Member since:
    Nov 2009

    Posted 16 Nov 2009 Link to this post

    Hi all,

    I think I'm missing some step in the Forward-Mapping approach I wanna do. I create a simple class

        public class Employee
            public int EmployeeId
                get; set;

    and by using the Wizard I'm not able to get the corresponding table created in the db. Not even the EmployeeId property is shown in the Fetch Group tab neither in the left tree. I want to create my business objects using a Class Diagram and then generate the db with Forward-Mapping. Have anyone faced this problem before? How can I fix this and get my table generated?


  2. Damyan Bogoev
    Damyan Bogoev avatar
    581 posts

    Posted 17 Nov 2009 Link to this post

    Hello Jorge Fernandez,

    Please make sure that in the Forward mapping wizard for each persistent class the Create/Update Table option is enabled as shown on the screenshot below:

    You should also verify that the Update Database property of the project is set to true.

    It is important to know that currently there is a limitation in the wizard when you use auto properties - the field settings are not available. Please switch to explicitly defined private fields/ public properties in order to get the full functionality.

    All the best,
    Damyan Bogoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top