Adding domain model failing

27 posts, 0 answers
  1. MrWilder
    MrWilder avatar
    2 posts
    Member since:
    Dec 2006

    Posted 24 Mar 2010 Link to this post

    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

  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 07 Apr 2010 Link to this post

    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.
  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 08 Apr 2010 Link to this post

    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.
  6. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 08 Apr 2010 Link to this post

    Thanks.
  7. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 08 Apr 2010 Link to this post

    Is it OK to add the ORM to the web application project in a Silverlight solution?
  8. Jim
    Jim avatar
    52 posts
    Member since:
    Sep 2012

    Posted 08 Apr 2010 Link to this post

    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.
  9. Serge
    Admin
    Serge avatar
    375 posts

    Posted 09 Apr 2010 Link to this post

    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.
  10. Paul Warren
    Paul Warren avatar
    2 posts
    Member since:
    Apr 2010

    Posted 22 Apr 2010 Link to this post

    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.
  11. Serge
    Admin
    Serge avatar
    375 posts

    Posted 26 Apr 2010 Link to this post

    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.
  12. Paul Warren
    Paul Warren avatar
    2 posts
    Member since:
    Apr 2010

    Posted 26 Apr 2010 Link to this post

    Serge - that sounds good and could prove very important to our evaluation!
    Please keep me or this forum updated...
    Many Thanks,
    Paul.
  13. gmendez
    gmendez avatar
    82 posts
    Member since:
    Jun 2012

    Posted 28 Apr 2010 Link to this post

    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
  14. Serge
    Admin
    Serge avatar
    375 posts

    Posted 29 Apr 2010 Link to this post

    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.
  15. gmendez
    gmendez avatar
    82 posts
    Member since:
    Jun 2012

    Posted 29 Apr 2010 Link to this post

    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
  16. Deryk Robosson
    Deryk Robosson avatar
    1 posts
    Member since:
    Feb 2010

    Posted 02 May 2010 Link to this post

    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.
  17. John Waters
    John Waters avatar
    84 posts
    Member since:
    Aug 2006

    Posted 03 May 2010 Link to this post

    Same here.
  18. Serge
    Admin
    Serge avatar
    375 posts

    Posted 03 May 2010 Link to this post

    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.
  19. Alan
    Alan avatar
    3 posts
    Member since:
    Apr 2010

    Posted 03 May 2010 Link to this post

    Hi Serge,

    Any chance this is still slated for the first week of May as mentioned above? 
  20. Serge
    Admin
    Serge avatar
    375 posts

    Posted 04 May 2010 Link to this post

    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.
  21. Alan
    Alan avatar
    3 posts
    Member since:
    Apr 2010

    Posted 12 May 2010 Link to this post

    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
  22. Josh McCullough
    Josh McCullough avatar
    9 posts
    Member since:
    May 2010

    Posted 12 May 2010 Link to this post

    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?
  23. Serge
    Admin
    Serge avatar
    375 posts

    Posted 13 May 2010 Link to this post

    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.
  24. Alan
    Alan avatar
    3 posts
    Member since:
    Apr 2010

    Posted 13 May 2010 Link to this post

    Great.... thanks Serge!
  25. Serge
    Admin
    Serge avatar
    375 posts

    Posted 28 May 2010 Link to this post

    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.
  26. Faris
    Faris avatar
    7 posts
    Member since:
    Jul 2010

    Posted 20 Jul 2010 Link to this post

    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
  27. Faris
    Faris avatar
    7 posts
    Member since:
    Jul 2010

    Posted 20 Jul 2010 Link to this post

    Any help ..
  28. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 22 Jul 2010 Link to this post

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