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

Forward-Mapping not generating tables

1 Answer 41 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.
Jorge Fernandez
Top achievements
Rank 1
Jorge Fernandez asked on 16 Nov 2009, 05:45 PM
Hi all,

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

 [Persistent()]
    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?

Thanks,

Jorge

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 17 Nov 2009, 04:09 PM
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.
Tags
Getting Started
Asked by
Jorge Fernandez
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or