Example of OpenAccess ORM with WPF

4 posts, 0 answers
  1. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 27 Nov 2008 Link to this post

    I'm looking for examples of using OpenAccess ORM with WPF applications.  I installed it and the VS integration doesn't seem to even know it's in a WPF app.  When adding a dataform it actually adds a Windows Form in my project - doh!

    Thanks,
    Robert
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 28 Nov 2008 Link to this post

    Hello Robert,

    You are right, doh ;)

    We did not implement the add data form for all our UI components.

    To bind to WPF pls. just use the frameworks object binding. You just have to make sure that the ObjectScope is not disposed during the complete lifetime of you dialog.

    Greetings,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 28 Nov 2008 Link to this post

    Thanks.  Is the common practice to have one ObjectScope used for the lifetime of the application (talking about WPF app in my case)?
  5. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 28 Nov 2008 Link to this post

    Hello Robert,

    Yes, you can have one scope for all, or a scope per usecase. If you have parallel operations (from the DB perspective) you should use a second scope.

    Regards,
    Jan Blessenohl
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top