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

open project questions

1 Answer 35 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 10 Aug 2010, 10:19 PM
Hi !

I have some questions .
In Forward Mappings the table created  in DB has fields in alphabetical order.I want that fields to be created in the order that are in the class. How I can do this ?

I played a little bit with a class library project . I created a class forward mapping, update the database, everything work fine.But after I delete this class, I created another one , in Forward mapping window still shows the old class that was deleted. I found some records of this old class in App.Config, I delete the nodes but still the class is shown in Forward mapping window
Where all this data are stored ?

And if I rename a class how It can automatically be renamed in all mappings? BEcause after that I have errors in Forward Mapping window. If I click on a field I have "System.Runtime.InteropServices.ComException occured."

Best regards,
Hans
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Damyan Bogoev
Telerik team
answered on 12 Aug 2010, 03:10 PM
Hi Hans,

1. Unfortunately you cannot control the order in which the columns are created in the database.
2. When you run the Forward Mapping wizard please click on the Reload button to clear all the cached data in the wizard. In case of reverse mapping scenario data for the persistent classes is placed in the reversemapping.config file as well. 
3. When you rename a class, you should also rename it in the app.config file if there is an entry for it. When you finish with the renaming you should rebuild the project.
Hope that helps.


Best wishes,
Damyan Bogoev
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
Damyan Bogoev
Telerik team
Share this question
or