is this Bug in LINQ (String must be exactly one character long) RRS feed

  • Question

  • Hi,

    I have a huge bulk of data in a table pumped by a tool.
    The table has many fields with data type Varchar(1) which is nullable.
    The beauty of the tool that performs the data population task is that, it enters empty strings instead of NULL value in the database.
    I am using .dbml file to perform CRUD operations on this data using LINQ.
    I am getting an error "String must be exactly one character long".
    After searching on some forums I found that this is a Bug.
    Just wanted to know is there a work around for this as my code breaks where ever it encounters an empty string.


    Tuesday, February 17, 2009 9:21 PM