locked
how to fill list of objects with DAAB ? RRS feed

  • Question

  • User852864959 posted

    Hello,

    Thanks for your attention, time and sharing.

    How DAAB can be used to fill list of custom objects ?

    I am curious if a custom object ( for example User) composes an enum (for example UserType which can have values admin or member); than how  object (User) will be filled if null is coming as value for enum (UserType) ?

    Please guide me on this issue.

     

    thanks in anticipation

    Saturday, May 22, 2010 3:54 AM

All replies

  • User-1071894543 posted

    DAAB can be used but you have to write your conversion code.

    For example:  Your  UserType enum , you ahve to check for null on your field, and set your default value, otherwise

    you'll have an InvalidCastException


    Tuesday, May 25, 2010 12:56 AM