Can integers result in a nullable column with forward mapping?

Thread is closed for posting
3 posts, 1 answers
  1. Vweiss
    Vweiss avatar
    2 posts
    Member since:
    Dec 2008

    Posted 20 Jan 2009 Link to this post

    If this can be done: how ?

    Regards

    Dirk
  2. Answer
    Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 21 Jan 2009 Link to this post

    Hi Dirk,

    yes, this can happen when the declaring class is mapped flat and not a base class. In this case the class must generate nullable columns as otherwise the values of a pure base class could not be stored.
    Also, you can force that by using int? (C#) as the field type.

    Sincerely yours,
    Thomas
  3. Vweiss
    Vweiss avatar
    2 posts
    Member since:
    Dec 2008

    Posted 21 Jan 2009 Link to this post

    Using int? did it. Thanks for your help!
Back to Top