CodeSmith Community
Your Code. Your Way. Faster!

Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

Latest post 06-29-2007 7:37 PM by Paul_S. 5 replies.
  • 05-25-2007 8:22 AM

    • arch
    • Not Ranked
    • Joined on 05-25-2007
    • Posts 3
    • Points 75

    Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    Full error: "The type or namespace name 'Bindable' does not exist in the namespace xxx.Entities' (are you missing an assembly reference?) C:\Projects\xxx.Domain\xxxBase.generated.cs)"

    on line:

    [Entities.Bindable, DataObjectField(false, false, true)]

    I started getting this error after modfiying my .csp file to include additional attributes.  When I was able to compile successfully, the above line was replaced by:

    [System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]

    I tried resetting everything to get back to the point where I was able to compile successfully but still getting the same issue. Anyone else with this issue? I'm using latest nettiers/codesmith.

     

    • Post Points: 5
  • 05-25-2007 9:35 AM In reply to

    • arch
    • Not Ranked
    • Joined on 05-25-2007
    • Posts 3
    • Points 75

    Re: Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    For anyone else having this problem, I went into the generated code and did a search on...

     [Entities.Bindable, DataObjectField(false, false, true)]

    and replaced it with...

    [System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]

    [DataObjectField(false, false, true)]

    as it was in the previous version of the generated code that compiled properly. After doing this I was able to compile successfully but this is still an issue. I can't do search and replace everytime I generate the code. Also, I have to go back and look at what the real  impact of this change is.

    • Post Points: 35
  • 05-25-2007 1:37 PM In reply to

    • mwerner
    • Top 50 Contributor
    • Joined on 03-02-2006
    • Sweden
    • Posts 106
    • Points 2,376

    Re: Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    What version of the templates are you guys using?
    Best regards, Magnus Werner
    • Post Points: 35
  • 05-29-2007 8:31 AM In reply to

    • arch
    • Not Ranked
    • Joined on 05-25-2007
    • Posts 3
    • Points 75

    Re: Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    According to the changes.log file - .netTiers v2.0.1.447
    • Post Points: 35
  • 06-18-2007 8:23 AM In reply to

    • wcwilson
    • Not Ranked
    • Joined on 06-18-2007
    • Posts 1
    • Points 35

    Re: Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    This error only occurs for me when I include tables to the entities I want to generate. It compiled just fine with my views.

    Has anyone determined what is going on here? Should I not be using the NetTiers templates currently shipped with the latest CodeSmith? Seems like they are the latest version.

    Thanks,

    Wayne Wilson
     

    • Post Points: 35
  • 06-29-2007 7:37 PM In reply to

    • Paul_S
    • Top 500 Contributor
    • Joined on 06-29-2007
    • Posts 19
    • Points 455

    Re: Error: type or namespace 'Bindable' does not exist in 'mynamespace.Entities'

    I have the same problem. Is there a resolution for this?

     

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