Using Telerik OpenAccess ORM and WPF

Thread is closed for posting
8 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 26 Mar 2010 Link to this post

    Requirements

    Telerik OpenAccess ORM

    2010.1.414.3
    Telerik RadControls for WPF

    2010.1.309.35
    .NET version

    3.5 SP1
    Visual Studio version

    Visual Studio 2008
    Programming language C#
    Browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION

    In the provided example is demostrated how to use a Telerik OpenAccess ORM domain model within a WPF application. The example uses a MVVM architecture.
    The Model-View-ViewModel (MVVM) is an architectural pattern used in software engineering.

    Key Highlights:
        -  Model - refers to the data access layer representing the real state content;
        -  View - refers to all elements displayed by the GUI;
        -  ViewModel - an abstraction of the View that also serves in data binding between the View and the Model;
        -  Repository pattern -   methods for retrieving and manipulating entities;
        
    Requirements:
        -   Northwind database;

    UPDATE:The most recent version of this project can be found in the Software Development Kit, which you can download here. In case you have questions related to this project, please use the support ticketing system.
  2. C28790DE-719E-452C-A54C-65FC379BC7F4
    C28790DE-719E-452C-A54C-65FC379BC7F4 avatar
    16 posts
    Member since:
    Nov 2008

    Posted 12 Jul 2010 Link to this post

    When I try and open the NorthwindApplication.xaml file I get the following errors
    Error 3 The type 'Model.Category' cannot be used as type parameter 'TEntity' in the generic type or method 'ViewModel.Repository<TEntity>'. There is no implicit reference conversion from 'Model.Category' to 'Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable'. C:\Users\THamaluk\Downloads\Telerik\OpenAccess\wpfmvvmusingopenaccess\ViewModel\CategoryViewModel.cs 22 54 ViewModel
     
    the code that causes these errors is

     

     

    public CategoryViewModel()

     

    {

     

    this.repositoryCategory = new Repository<Category>();

     

     

    this.repositoryProduct = new Repository<Product>();

     

     

    this.Load();

     

    }
    with "Category" and "Product" causing the above error. Can you please help me correct these errors ?

  3. DF306142-48B5-44E4-8E2D-C52759157F15
    DF306142-48B5-44E4-8E2D-C52759157F15 avatar
    581 posts
    Member since:
    Mar 2017

    Posted 13 Jul 2010 Link to this post

    Hi terry,

    You should use the Check settings wizard to update the project. Please refer to this article for more details.

    Regards,
    Damyan Bogoev
    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
  4. 1625B89E-A111-4836-B620-EF2EE547BBB1
    1625B89E-A111-4836-B620-EF2EE547BBB1 avatar
    241 posts
    Member since:
    May 2006

    Posted 31 Dec 2010 Link to this post

    What about the same implementation for SL4 applications.
    My project is the same as taskit application have a look here
    http://blogs.telerik.com/rosswozniak/posts/10-03-15/introducing_task-it_a_real-world_application_using_radcontrols_for_silverlight_4.aspx

    I have added the .rling file to the .web project now I can't referance the OA context class from my silverlight project.

    What should I do ... how can I referance it from my silverlight application ?

    Best regards
    Waleed
  5. DF306142-48B5-44E4-8E2D-C52759157F15
    DF306142-48B5-44E4-8E2D-C52759157F15 avatar
    581 posts
    Member since:
    Mar 2017

    Posted 03 Jan 2011 Link to this post

    Hello Telerik Admin,

    You could download the Telerik OpenAccess SDK(blog post) that we introduced in Q3. The SDK browser ships rich set of examples including implementation of Silverlight application using MVVM.
    You could find it from your account under the download section.
    Hope that helps.

    Greetings,
    Damyan Bogoev
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
  6. C28790DE-719E-452C-A54C-65FC379BC7F4
    C28790DE-719E-452C-A54C-65FC379BC7F4 avatar
    16 posts
    Member since:
    Nov 2008

    Posted 10 Jan 2011 Link to this post

    I was able to download, build and run this sample, however is there any documentation that explains how it works ?

    Are there any other ORM and WPF MVVM samples ?
  7. DF306142-48B5-44E4-8E2D-C52759157F15
    DF306142-48B5-44E4-8E2D-C52759157F15 avatar
    581 posts
    Member since:
    Mar 2017

    Posted 10 Jan 2011 Link to this post

    Hi Telerik Admin,

    1.    Currently we do not provide documentation about the examples shipped with the Telerik OpenAccess SDK.
    2.    You could find this help section useful. It demonstrates how to use Telerik OpenAccess ORM with WPF.
    If any other question arise please contact us back.

    Greetings,
    Damyan Bogoev
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
  8. DF306142-48B5-44E4-8E2D-C52759157F15
    DF306142-48B5-44E4-8E2D-C52759157F15 avatar
    581 posts
    Member since:
    Mar 2017

    Posted 13 Jun 2011 Link to this post


    The most recent version of this project can be found in the Software Development Kit, which you can download here. In case you have questions related to this project, please use the support ticketing system.

    All the best,
    Damyan Bogoev
    the Telerik team
    Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.