entity framework complex type use in webforms! RRS feed

  • Question

  • Hi,

    i am using entity framework and wcf data services.

    i am trying to bind a grid using wcf data services which use complex types in entity framework.

    but it throws error saying 

    The closed type does not have a corresponding element settable property.


    when i use simple entitiyes it works fine!! its stuck for long now!!

    plz help..

    Friday, October 14, 2011 10:25 AM


  • Hi mandar,

    that sounds like you cant bind a property because its readonly or has no setter.

    BTW.. You should really use a viewmodel and not use Entities directly in a view. Map the needed properties of your entity into a model and bind that model instead of directly binding entities.



    • Marked as answer by Alan_chen Tuesday, October 25, 2011 8:08 AM
    Friday, October 14, 2011 2:01 PM