Argument types do not match when map char(1) to System.Char
Posted: Fri 15 Oct 2010 20:31
Hello,
I'm testing a trial version of LinqConnect and I get a System.ArgumentException when I have a nullable char(1) column in any table.
To reproduce this you need:
1- create a table in a sqlSever
CREATE TABLE [dbo].[TestTable](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Status] [char](1) NULL)
2- generate a new DataContext with this table;
3- Run any query like this one:
{
DataContextSql dataContext = new DataContextSql();
var entity = dataContext.TestTables.First();
}
Could you help me?
Thank you.
I'm testing a trial version of LinqConnect and I get a System.ArgumentException when I have a nullable char(1) column in any table.
To reproduce this you need:
1- create a table in a sqlSever
CREATE TABLE [dbo].[TestTable](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Status] [char](1) NULL)
2- generate a new DataContext with this table;
3- Run any query like this one:
{
DataContextSql dataContext = new DataContextSql();
var entity = dataContext.TestTables.First();
}
Could you help me?
Thank you.