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

cannot see Teleric in installed templates

1 Answer 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.
kadir
Top achievements
Rank 1
kadir asked on 23 Jun 2011, 12:23 PM
Hi guys ;

 Firstly Im newbie at Teleric sorry for that ;

When i Create at visual studio 2010 a new web site with shift+alt +n  then i cannot add new item of Teleric in installaed templates...But when i create a project i can see there...I need help guys ...Thanx a lot..

1 Answer, 1 is accepted

Sort by
0
Kosta Hristov
Telerik team
answered on 27 Jun 2011, 05:42 PM
Hi kadir,

This is in fact the expected behavior. OpenAccess requires that the persistent classes are part of a project which can be compiled to an assembly. This is because certain code enhancements have to be made to this assembly as a post-build step. The issue with the web site is that it is actually compiled dynamically by the web server, therefore the required code modifications cannot be made.

You have two options :
1. Create your web site but add the domain model to another project of type Class Library and reference this project from the web site.
2. Use a Web Application project instead of a Web Site. Web Applications are compiled as regular Visual Studio projects and OpenAccess has no problems working with them.

Also note that in general it is a good practice to separate the data model from your UI project, even when using a web application. I hope that helps.

Best wishes,
Kosta
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
kadir
Top achievements
Rank 1
Answers by
Kosta Hristov
Telerik team
Share this question
or