This is a migrated thread and some comments may be shown as answers.

Not accepting null in foreign key attribute.

1 Answer 74 Views
LINQ (LINQ specific questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Devanand Chahal
Top achievements
Rank 2
Devanand Chahal asked on 07 Jul 2010, 06:59 PM
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 ..............

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 12 Jul 2010, 01:54 PM
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,
Ady
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
Tags
LINQ (LINQ specific questions)
Asked by
Devanand Chahal
Top achievements
Rank 2
Answers by
Ady
Telerik team
Share this question
or