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

Can't See DataContext after Build

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Garrett
Top achievements
Rank 1
Garrett asked on 28 Apr 2011, 09:31 PM
Hello,

I think there's something wrong with my Domain Model, but I can't for the life of me figure out what... as the Open Access wizard gives me no feedback of what's wrong.

I have a simple Domain Model using one view. The view doesn't have an identity, so I defined one. After that, I save and build... when I go to create a Domain Service, the DataContext drop-down does not show my new Domain Model at all.

How do I fix this? What requirement am I missing to use this view in the domain model? Implementation and Navigation are empty, and the class only has Properties.

I realize that the OpenAccess interface was modeled after the Entity Framework interface in VS2010, but the lack of feedback when something isn't compatible is unbelievably frustrating as I have no idea where to start looking... especially with documentation being rather out-of-date at this point.

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 03 May 2011, 04:52 PM
Hi Garrett,

 When running the add domain service wizard you should be asked to choose between generating from RLINQ file and generating from an Context. Can you please share with us which option have you chosen?
Please have in mind that the Domain service wizard has been completely reworked and you will be able to find the new and improved version with one of our next service packs.

Greetings,
Petar
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
Garrett
Top achievements
Rank 1
answered on 03 May 2011, 05:05 PM
Hi Petar,

After re-running, rebuilding, and closing VS a few times, it finally recognized that a data context was there. I don't recall having a choice between RLINQ and DataContext, but the resulting file is an .rlinq extension.

Thanks,

Garrett
0
PetarP
Telerik team
answered on 05 May 2011, 04:06 PM
Hi Garrett,

Can you please clarify to which wizard are you referring? If you are adding a domain model then your file will be with rlinq extension. If you are adding a domain service then the file added will be with tt extension (t4 code generation). The tt file automatically generates a cs or vb (depending on your project language) file that will represent your service.

Kind regards,
Petar
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
General Discussions
Asked by
Garrett
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Garrett
Top achievements
Rank 1
Share this question
or