Can't get going with ORM

Thread is closed for posting
6 posts, 1 answers
  1. Tom
    Tom avatar
    5 posts
    Member since:
    Aug 2008

    Posted 04 Aug 2010 Link to this post

     

    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")

  2. Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 06 Aug 2010 Link to this post

    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
  3. Tom
    Tom avatar
    5 posts
    Member since:
    Aug 2008

    Posted 06 Aug 2010 Link to this post

    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
  4. Answer
    Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 09 Aug 2010 Link to this post

    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
  5. Tom
    Tom avatar
    5 posts
    Member since:
    Aug 2008

    Posted 11 Aug 2010 Link to this post

    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
  6. Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 12 Aug 2010 Link to this post

    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
Back to Top