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

Adding domain model failing

26 Answers 436 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
MrWilder
Top achievements
Rank 1
MrWilder asked on 24 Mar 2010, 09:58 PM
Hi I have downloaded and installed:

Telerik-OpenAccess-ORM-express-2010.1.312.2
I am using visual studio 2008 pro and windows 7. 
I have a local MySql database, no SQL Express
I also have installed RAD Controls Q4 2006 for ASP.NET

Once installed i create a web site, file system based, then:

1. Click Telerik
2. Click Open Access
3. Click Enable project to use ORM
4. I am asked if i want to add a domain model (i do!)
5. I click yes
6. Dialog box disappears, but nothing happens and my website is not ORM enabled

No errors in event log etc..

Can you help ?

Many thanks

26 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 25 Mar 2010, 05:54 PM
Hello MrWilder,

The wizard you tried to start is actually the old Enable project wizard which is not needed if you want to work with the new visual designer. You can add a domain model item by opening the project's context menu, then Add -> New Item... From the Add New Item dialog select the Telerik OpenAccess Domain Model template and follow the wizard.
Note that you cannot add such an item in a Web site project. It is required that the project containing the .rlinq item can be compiled to an assembly, so please use some of the other Visual Studio templates (Web Application, Windows Application, Class Library, etc.) or create the model in a separate Class library project and reference that project from the Web Site.
You can find additional information about how the designer and the model are used in the OpenAccess Tasks chapter of the documentation which is installed with the product. Unfortunately the online documentation is not updated yet. Hope that helps.

Sincerely yours,
Alexander
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
Jim
Top achievements
Rank 1
answered on 07 Apr 2010, 08:00 PM
I'm trying to follow these directions, but I do not see the OpenAccess Domain Model template.  Any idea why?

I am using a newly created RadControls C# Silverlight project. I just installed downloaded and installed the new Data Services Wizard on top of the Q1 release.
0
Alexander
Telerik team
answered on 08 Apr 2010, 03:31 PM
Hello James,

Please note that at the moment the domain model templates are not installed in Visual Studio 2010. There are some breaking changes in the code generation introduced in VS2010 that hopefully we will be able to avoid soon in one of the next builds.
Additionally, it is not recommended to add .rlinq files to WPF or Silverlight projects. Please use a separate Class library project to keep the domain model items and reference that project from the Silverlight application. This is the most clean and bullet-proof approach.

Best wishes,
Alexander
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
Jim
Top achievements
Rank 1
answered on 08 Apr 2010, 08:04 PM
Thanks.
0
Jim
Top achievements
Rank 1
answered on 08 Apr 2010, 11:38 PM
Is it OK to add the ORM to the web application project in a Silverlight solution?
0
Jim
Top achievements
Rank 1
answered on 09 Apr 2010, 02:51 AM
Also, do you have any idea why I can't add a class library project to my Silverlight solution?  Class Library is usually one of the options, but not now.
0
Serge
Telerik team
answered on 09 Apr 2010, 03:11 PM
Hi James,

You should be able to create a new Class Library project in your solution but  you cannot reference it from a Silverlight project because the Silverlight Framework is only a subset of of the .NET Framework. What you can do is create a Silverlight Class Library project, but you will not be able add a Domain Model in it, because System.Data cannot be added as a reference.

The preferred approach when developing Silverlight applications is to create a service that is consumed by the application. I think that the new Data Services Wizard will be of great help to you. 

If you need further assistance, do not hesitate to contact us.

Kind regards,
Serge
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
Paul Warren
Top achievements
Rank 1
answered on 22 Apr 2010, 04:13 PM
So does this mean there is no way (currently) with VS2010, that I can add an OpenAccess Domain Model and use the Visual Entity designer?

I was hoping that this would enable me to use Linq with my Oracle database but failing this is there some way I can do this?

Thanks,
Paul.
0
Serge
Telerik team
answered on 26 Apr 2010, 08:02 AM
Hi Paul Warren,

 You are correct, currently there is no Visual Studio 2010 support. However we are working on it and it is our top priority. We believe that we will provide VS2010 support as of the first week of May.

Greetings,
Serge
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
Paul Warren
Top achievements
Rank 1
answered on 26 Apr 2010, 03:47 PM
Serge - that sounds good and could prove very important to our evaluation!
Please keep me or this forum updated...
Many Thanks,
Paul.
0
gmendez
Top achievements
Rank 1
answered on 28 Apr 2010, 04:27 PM
Hi Alexander,

I'm evaluating the data model disigners. I added a Datamodel consiting of a single entity to my business objects class library.
I noticed that the generated class doesn't include any kind of mapping information (attributes).
I'm trying to use this genereted class within a system that was already working with a forward mapped class. So, I created a new dll for it, which I replaced in my solution. In other words, I removed my original BusinessOjects project and added a new one instead, containing my Domain Model.
In theory, everithing should work normally. But when I try to run my application the following error occurs when trying to instantiate the database object:

The assembly 'BusinessObjects' does not have a config file with an openaccess node.

And it's true... indeed. The generated config file contains just this:

<?

 

xml version="1.0" encoding="utf-8"?>

 

<

 

configuration>

 

<

 

connectionStrings>

 

<

 

add name="WorkHoursEntityDiagrams" connectionString="data source=SANDIA\SQLEXPRESS;initial catalog=WorkHours;integrated security=True" providerName="System.Data.SqlClient" />

 

</

 

connectionStrings>

 

</

 

configuration>

 


The code I'm using to get the database object is as follows:

          Telerik.OpenAccess.

Database.Get("WorkHoursEntityDiagrams");

 



Even I was not convinced, I supposed I had to enable the project to get the required openaccess nodes inside the config file. But when I tryed that approach it failed telling me that I cannot enable a proyect that already contains a domain model.
So, I seem to be in a dead-end street. I can't 'foward map' my entity nor I can run my application.

What may I be doing wrong here?

Best wishes,

Gonzalo
0
Serge
Telerik team
answered on 29 Apr 2010, 12:55 PM
Hello gmendez,

You are going in the right direction. In fact you cannot add a Domain Model to a project and 'enable' it. You were correct to delete your project and create a new one. The issue here lies in the fact that we have changed the way one works and queries OpenAccess.


If you are using the Model Designer you should use the created context class to create and execute queries. We are now working on extending the documentation and providing new samples, code libraries and knowledge base articles on this topic, but for the time being you can check this sample project as it shows how to use the new context.

I do hope this helps.

Best wishes,
Serge
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
gmendez
Top achievements
Rank 1
answered on 29 Apr 2010, 01:24 PM
Thanks a lot Serge.
I'll check your sample project later. For now I went the usual way of foward mapping since I like to "think in objects".
I see that in the current version the domain model style is kind of reverse mapping, but I wanted to give it a try anyway.
Best wishes,

Gonzalo
0
Deryk Robosson
Top achievements
Rank 1
answered on 02 May 2010, 03:56 PM
Is there an open support ticket on this?

If not, when can we expect this to be resolved for VS2010?  I was in the process of starting a new application today for a client and ran into this issue as well.
0
John Waters
Top achievements
Rank 1
answered on 03 May 2010, 05:28 AM
Same here.
0
Serge
Telerik team
answered on 03 May 2010, 05:07 PM
Hi John Waters,

The Telerik OpenAccess Model Domain support for Visual Studio 2010 is currently a work in progress and our top priority. It will be included in the first service pack we provide.

I will keep you posted in this thread for further development.

All the best,
Serge
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
Alan
Top achievements
Rank 1
answered on 04 May 2010, 04:32 AM
Hi Serge,

Any chance this is still slated for the first week of May as mentioned above? 
0
Serge
Telerik team
answered on 04 May 2010, 04:54 PM
Hi Alan,

We are facing unexpected difficulties due to the groundbreaking changes that were introduced with Visual Studio 2010. We are working on it and as soon as we have an estimate I will notify you in this thread.

Kind regards,
Serge
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
Alan
Top achievements
Rank 1
answered on 12 May 2010, 07:50 PM
Hi Serge,

Any update on time frame?  I'm starting a new project this week and am wondering if OA will be an option.

Thanks,
Alan
0
Josh McCullough
Top achievements
Rank 1
answered on 12 May 2010, 08:53 PM
I am successfully using OpenAccess ORM IN VS2010 - but I chose "No" when asked if I wanted to add a domain model. Have you tried this path?
0
Serge
Telerik team
answered on 13 May 2010, 05:53 PM
Hello Josh McCullough,

 This is true, but this way you can not use the new Visual Domain Model Designer, but you are obliged to develop your application using the old wizards approach. What everyone in this forum thread is actually asking for is support for the new Telerik Domain Model Designer

As to the time frame, we hope to deliver the build next week. As I have mentioned earlier, I will keep you posted on the progress in this thread.

Greetings,
Serge
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
Alan
Top achievements
Rank 1
answered on 13 May 2010, 08:16 PM
Great.... thanks Serge!
0
Serge
Telerik team
answered on 28 May 2010, 08:42 AM
Hello Alan,

The service pack of Telerik OpenAccess ORM has been uploaded. You can download it from your account.

You can also check out the release notes here.

Regards,
Serge
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
Faris
Top achievements
Rank 1
answered on 20 Jul 2010, 11:07 AM
Dear Sir,

The domain model working with SQLExpress ,
But when I add new Domain Model item to connect Oracle database (9i) ,and after entering connection string , it comes us with error message , said to me the following error with popup window:

" Connection Error : ExceptionSystem , ArgumentNullException,
Details: Value cannot be null.
 Parameter name : Key"

I use VS 2010 .
I need your help please ,,

Faris
0
Faris
Top achievements
Rank 1
answered on 20 Jul 2010, 09:28 PM
Any help ..
0
Alexander
Telerik team
answered on 22 Jul 2010, 04:08 PM
Hi Faris,

Please find my answer in this thread.

Greetings,
Alexander
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
Data Access Free Edition
Asked by
MrWilder
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Jim
Top achievements
Rank 1
Serge
Telerik team
Paul Warren
Top achievements
Rank 1
gmendez
Top achievements
Rank 1
Deryk Robosson
Top achievements
Rank 1
John Waters
Top achievements
Rank 1
Alan
Top achievements
Rank 1
Josh McCullough
Top achievements
Rank 1
Faris
Top achievements
Rank 1
Share this question
or