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

QuickStart: Missing metadata in persistent class

1 Answer 396 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.
Alex Pierce
Top achievements
Rank 1
Alex Pierce asked on 09 Jun 2010, 10:09 PM
BEWARE: The ORM QUICKSTART STEP-BY-STEP INSTRUCTIONS ARE OUT OF DATE: (AS OF JUNE 10, 2010)

After spending days trying to solve the problems related to following the instructions in the QuickStart sample application, I discovered the step-by-step instructions are wrong and no longer apply to the most recent release of the Telerik ORM.  I found this out by seeing that the downloaded sample code is very different from the code constructed via following the step-by-step instructions and looking at the 5/27/2010 ORM release blog under the blogs section of Telerik's web site.  No notice of this change has been posted to the ORM Getting Started forum, which is a huge oversight.

Telerik: I appreciate your efforts to upgrade ORM to the visual designer, it is a step in a good direction.  However, to leave your novice users access to outdated instructions is true folly and very frustrating.  I highly recommend you upgrade the step-by-step instructions for the QuickStart sample app.

- Alex Pierce

I am compiling the QuickStart app.  After creating the rental car DB, completing all of the OpenAccess persistent class reverse mapping, and adding all of the code for the web project I get the following error when running the app.

"No metadata has been registered for class OpenAccessData.Customer. (This usually indicates, that either this class is not declared persistent or it is declared persistent but not enhanced."

The customer class, as well as all of the other reverse mapped classes are declred as persistent:

Auto generated code for persistent class below:

using

 

System;

 

 

using

 

System.Collections.Generic;

 

 

namespace

 

OpenAccessData

 

{

 

 

// Generated by Telerik OpenAccess

 

 

 

// Used template: c:\program files\telerik\openaccess orm\sdk\IDEIntegrations\templates\PCClassGeneration\cs\templates\classgen\class\partialdesignerdefault.vm

 

 

[Telerik.OpenAccess.

Persistent(IdentityField = "customerID")]

 

 

 

public partial class Customer

 

 

{

 

private int customerID; // pk

 

 

 

private string address;

 

 

 

private string city;

 

 

 

private string country;

 

 

 

private string drvLicNumber;

 

 

 

private string fullName;

 

 

 

private string state;

 

 

 

private string zIPCode;

 

 

 

 

 

}

}

How do I sove this problem?

 

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 14 Jun 2010, 12:16 PM
Hi Alex Pierce,

 First let me apologize for the inconvenience caused by the inconsistency between the real product state and the web documentation. I would like to underline that your feedback is very much appreciated and we are doing everything in our powers to update the online help as soon as possible. I would like to shed some light for you regarding the documentation of the product. At the moment, the documentation is in the process of complete re-writing and it will cover the product a lot more in the perspective of the Visual Designer and latest technologies integration. The quickstart will be completely new(although still based on the car rental database) and it will have versions for ASP .NET, Silverlight, WPF and Windows Forms development scenarios. The examples will be based on the new Visual Designer so there is no confuse on which approach is better for the novice customers. You could find a big part of the mentioned help as part of the installed version of OpenAccess in .chm format. As soon as it is close to a ready to publish state, we will upload it on the web and update the current one.
Regarding the car rental application, you could download the source code from our code library and you should not have any problems compiling it and trying it out.

Once again, sorry for all the inconveniences so far and thanks in advance for your understanding and patience. 

Sincerely yours,
Zoran
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
Alex Pierce
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or