How to: Represent Columns as Allowing Null Values
.NET Framework 4.5
Use the LINQ to SQL CanBeNull property on the ColumnAttribute attribute to specify that the associated database column can hold null values.
For code examples, see CanBeNull.
To designate a column as allowing null values
-
Add the CanBeNull property to the ColumnAttribute attribute.
-
Set the CanBeNull property value to true.
See Also
Concepts
The LINQ to SQL Object ModelOther Resources
How to: Customize Entity Classes by Using the Code Editor
Copyright © 2012 by Microsoft Corporation. All rights reserved.
Build Date: