CodeSmith Community
Your Code. Your Way. Faster!

Windows Presentation Foundation, Data Binding and NetTiers

Latest post 04-06-2007 5:08 PM by margagn. 0 replies.
  • 04-06-2007 5:08 PM

    • margagn
    • Top 150 Contributor
    • Joined on 03-24-2006
    • Posts 32
    • Points 800

    Windows Presentation Foundation, Data Binding and NetTiers

    Hi all!

    I've been working on a WPF Project since few days. I am now facing a problem since I started to try to databind WPF Controls to NetTiers DataRepository in DesignMode. Attached, you will find a screenshot of the error.

    Even thought the application runs perfectly when I compile and execute it; in design mode, the IDE tries to read the NetTiers config and doesn't succeed. Why? Is there a way to bypass this problem?

    I am quite sure that some of you will tell me to change my add in my AddressTypes class constructor a kind of  “if (!IsDesingMode) { then read DB }” but I don’t want to see such condition in a business logic object? Is it possible to add this condition somewhere in the generated code? Finally, I’d like to get rid of the error. I don’t really want to see my data in the IDE…

    Any ideas? I’d really appreciate any help.

    Thanks !

    Martin 


    Filed under: , ,
    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems