Not accepting null in foreign key attribute.

Thread is closed for posting
2 posts, 0 answers
  1. Devanand Chahal
    Devanand Chahal avatar
    26 posts
    Member since:
    Mar 2009

    Posted 07 Jul 2010 Link to this post

    I have a relation between two classes and the foreign key in one class is made nullable (by using "?"  after the name of foreign key variable). In the data table its also accepting null value. I have forward mapping of this persistent foreign key to the foreign key in the table (in table this foreign key is nullable). It is giving me runtime error when it comes on the declaration of that variable.

    Any workaround to this problem would be highly appreciated ..............
  2. Ady
    Ady avatar
    589 posts

    Posted 12 Jul 2010 Link to this post

    Hello Devanand Chahal,

     Can you provide more information about the error you get at runtime - error message, stack trace etc.
    If possible you could also send us the app.config file so that we can have  a closer look at your mapping. This would help in resolving the problem sooner.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top