I have set up a brand new project using the 2010.2.714 ORM release, and I'm having trouble producing an update script from my model.
My steps were:
1. Set up a new project (Namespace: Oxinet.PEMS.DataModel)
2. Create a new data model called PEMSData
3. Import from existing database, which is still being designed, so most of the tables are there, but not all the mapping tables
(what I was hoping that we could use ORM to create "glue" mapping tables for us).
4. Make a few changes to property names, and make a couple of associations which involve the creation of new mapping tables.
5. This seems to work ok and creates some nice partial classes from my original database tables, one of which is called "Person"
6. Try to do "update database from model", where I go through the wizard and it just pops up with "Could not load type Oxinet.PEMS.DataModel.Person. Please rebuild the project and run the wizard again."
so (duh!) I rebuilt the project and ran the wizard again and I get the same result. I have no build errors or even any warnings.
What am I doing wrong?
9 Answers, 1 is accepted
Damyan Bogoev
the Telerik team
I am having this same issue. I commented out the connection string in app.config, have tried cleaning the solution, rebuilding and restarting visual studio. Nothing seems to work for forward mapping.
I am also using the express license for evaluation version 2010.2.714
Brent
When you close your visual studio instance can you please open the solution folder and delete all compiled assemblies manually before opening the visual studio again. This should fix your problem. Please note that you will have to rebuild your project once you open your solution again. We have eliminated the need of a compiled assembly from the forward mapping wizard and you should not encounter such problems in our next versions.
We are sorry for any inconvenience caused.
Petar
the Telerik team
Your suggestion appears to have no impact. I cannot use the function at all. I removed all assembly references and restarted VS and rebuilt. I still receive the Please rebuild the project in order to advance to the next step message. I also tried with the 2010.2.804 internal build. Same result.
Can you guys maybe put a new internal build for us to try?
Thanks, Greg
Brent
We are still working on the improved version of the forward mapping wizard. What we are targeting is to completely remove the need of a compiled assembly for the wizard to run. This will greatly ease the work with the wizard and dramatically reduce the problems that are present now. I will post here once we have an internal build containing the new version.
Once again sorry for the inconvenience caused.
Petar
the Telerik team
Our latest internal build tcontains the fixes. You no longer need the pre-compiled assembly and thus you should not encounter the same problem again.
Greetings,Petar
the Telerik team
Great news, and great work. I'll take it for a spin today! :)
Thanks, Greg