OpenAccess and ASP.NET Website

4 posts, 1 answers
  1. Alain
    Alain avatar
    33 posts
    Member since:
    Feb 2009

    Posted 21 Aug 2011 Link to this post

    Web site (not Web Application)
    ASP.NET Version: 4.0
    OpenAccess: 2011.2.713
    Visual Studio: 2010

    Hello all,

    After having created my new ASP.NET website, I wanted to use OpenAccess for data layer.

    But nothing is possible from "Telerik/OpenAccess" menu, all menu items, except "Upgrade References" and "Profiler and Tuning Advisor" (+Help and Info), are grayed.
    The menu item "Upgrade References" does nothing.
    The menu item "Telerik/Data Services Wizard" is enabled, but it proposes to create a DAL as service, as its name indicates it.

    What must I do to use OpenAccess with my ASP.NET website?
    Must I transform my website to webapplication?

    Thank you for your answer,
  2. Answer
    Ivailo avatar
    318 posts

    Posted 24 Aug 2011 Link to this post

    Hi Alain,

    You cannot directly add you data access layer into your web site. OpenAccess ORM requires a separate class library for scenarios with a web site. Once you have added the class library, you will be able add a new Domain Model through the menu.

    In order to get started with OpenAccess ORM, I recommend you to refer to some of the learning resources we are providing, for example the documentation. There, depending on the scenario (database first/model first/code only) you can find links to the articles explaining in several short steps how you can add a Domain Model to your application and the API you can use to manipulate data. For a typical end-to-end scenario, you can check out the ASP.NET Quick-start tutorial.

    Another useful resource is our SDK – it provides many example applications that you can use to jump-start your data layer once you are familiar with the basics.

    Do not hesitate to contact us if you have any questions or you need assistance with some task.


    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's SQL Server Community Awards. We are competing in TWO categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Boruch
    Boruch avatar
    6 posts
    Member since:
    Jul 2011

    Posted 03 Jun 2014 in reply to Ivailo Link to this post

    This kind of sucks. You can add a linq to sql model and entity framework model to a website... but not telerik data access model.
    I would gladly give this framework a try, the problem is that I have to go through hell to convert a website to a web application.

    the following link is shows you how to do it superficially.
    din't work for me anyway.
  5. Kristian Nikolov
    Kristian Nikolov avatar
    206 posts

    Posted 04 Jun 2014 Link to this post

    Hello Boruch,

    While it is true that it is not possible to add Telerik Data Access model directly in to your WebSite project, you could still consume such a model defined in a separate project, without the need to convert your WebSite to WebApplication. To do this you need to add a reference to the project containing the model and the following assemblies:
    1. Telerik.OpenAccess.dll
    2. Telerik.OpenAccess.Runtime.dll
    3. Telerik.OpenAccess.35.Extensions.dll

    You can add a project reference to your Telerik Data Access model with the following described in this MSDN article.

    I hope this helps. In case you have any more questions feel free to post in our forums again.

    Kristian Nikolov
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
Back to Top