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

Can't get going with ORM

5 Answers 145 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.
Tom
Top achievements
Rank 1
Tom asked on 04 Aug 2010, 06:57 PM

 

I must have missed something basic. Using either  Oracle or SQL server 2008 R2, win 7 or Server 2008 I get the same errors that the libraries aren't found/recognised.

I'm trying to build a Silverlight App (4) in VS 2010 with ORM to handle the data bits with errors that iunclude

Error 6 Type 'OpenAccessContext' is not defined. C:\inetpub\wwwroot\ORM01\ORM01\EntityDiagrams.vb 30 13 ORM01
Error 7 Type 'BackendConfiguration' is not defined. C:\inetpub\wwwroot\ORM01\ORM01\EntityDiagrams.vb 33 29 ORM01
Error 13 'GetAll' is not a member of 'ORM01.BadgerTrackEntityDiagrams'. C:\inetpub\wwwroot\ORM01\ORM01\EntityDiagrams.vb 59 12 ORM01

Maybe SL 4 is not yet supported.

The bits in yellow are my comments

 

Please Help!

 

Tom

 

Imports System

Imports System.Data -doesn't contain any public member

Imports System.Linq

Imports System.Linq.Expressions

Imports System.Data.Common -can't find/won't reference these

Imports System.Collections.Generic

Imports Telerik.OpenAccess  -can't find/won't reference these

Imports Telerik.OpenAccess.Metadata -can't find/won't reference these

Public Partial Class BadgerTrackEntityDiagrams

Inherits OpenAccessContext –Type is not defined

Private Shared connectionStringName As String = "BadgerTrackEntityDiagrams"

Private Shared backend As BackendConfiguration = GetBackendConfiguration()

Private Shared metadataSource As MetadataSource = XmlMetadataSource.FromAssemblyResource("EntityDiagrams.rlinq")

5 Answers, 1 is accepted

Sort by
0
Petko_I
Telerik team
answered on 06 Aug 2010, 08:19 AM
Hello Tom,

What I suspect is required to get your project working is update the references to the Telerik OpenAccess assemblies. You can right-click your project in the solution explorer and select the Upgrade References option. You will be prompted to reload your projects. If the problem is still there, which should not be the case, you can try and manually remove and add again the references in the solution explorer – right-click References, then select Add Reference and locate the assemblies in the .NET tab. The assembly where the OpenAccessContext class is located is Telerik.OpenAccess.35.Extensions, so please make sure your project is referencing it.

I hope this helps. Do not hesitate to contact us if the problem persists.


Regards,
Petko_I
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
0
Tom
Top achievements
Rank 1
answered on 06 Aug 2010, 02:28 PM
Thanks for coming back,


I am afraid neither worked: I had previously updated the references. The error I get is that Telerik.OpenAccess.35.Extensions.dll was not built against the Silverlight Runtime. -I am using 4, which I think is where the problem lies. Open Access 40 doesn't work either by the way.

Does ORM work with SL4?


Tom
0
Accepted
Petko_I
Telerik team
answered on 09 Aug 2010, 05:05 PM
Hi Tom,

Silverlight 4.0 is supported with OpenAccess. The setup process, however, is a bit different from adding a domain model in a common .NET project. Here is a blog post which explains the basics of the integration between Silverlight projects and OpenAccess. Please, follow the steps described there and see if you can get your solution working. Contact us again to tell us whether you have already tried the tutorial or you experience the same or other hurdles.

Kind regards,
Petko_I
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
0
Tom
Top achievements
Rank 1
answered on 11 Aug 2010, 05:27 PM
Thank You,

I am running now. The mistake I made was to try to add the Domain Service model to the SL project instead of the server one.

Tpm
0
Petko_I
Telerik team
answered on 12 Aug 2010, 03:30 PM
Hi Tom,

We are glad you found your way out. I would like to say that we have an updated online help which you can also use for reference. The QuickStart > Silverlight 4.0 section may be of particular interest to you.

Should you need more resources or have more questions, do not hesitate to contact us.

Kind regards,
Petko_I
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
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Petko_I
Telerik team
Tom
Top achievements
Rank 1
Share this question
or