null value in typed dataset?
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have a DB table that references it self to create a hierarky. If the ParentRoleId column is null then the Role represents a top level role:
Database columns: RoleId PK (Identity) ParentRoleId FK (Allow null) RoleValue
Now to the question: I'm using typed datasets as database access, but the generated code for the ParentRoleId column is of the type int and thus doesn't support null. How should I create a workaround for this?