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

OpenAccess and ASP.NET Website

3 Answers 85 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.
Alain
Top achievements
Rank 1
Alain asked on 21 Aug 2011, 11:15 AM
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,
Alain

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivailo
Telerik team
answered on 24 Aug 2011, 03:53 PM
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.

Regards,

Ivailo
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 >>

0
Boruch
Top achievements
Rank 1
answered on 03 Jun 2014, 12:09 PM
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.
http://msdn.microsoft.com/en-us/library/aa983476.aspx
din't work for me anyway.
0
Kristian Nikolov
Telerik team
answered on 04 Jun 2014, 12:47 PM
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.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Getting Started
Asked by
Alain
Top achievements
Rank 1
Answers by
Ivailo
Telerik team
Boruch
Top achievements
Rank 1
Kristian Nikolov
Telerik team
Share this question
or