G
Guest
Hi,
I am impressed by the work you have done to simplify creation of DAL
components.
I especially like TableAdapters.
However, I have found out that when you generate a TableAdapter in the
TableAdapter Designer it creates a bit weird update and delete (SQL)
procedures.
Whenever a collumn is nullable it generates special parameters to signal
that a given collumn should be null. It has a name which looks like this:
@IsColumnNameNull but its type is the same as the type of the underlying
column , instead of just making it of type int.
The generated adapter code (C#) declares it as of type int, which makes it
all work.
But this way the SQL Server must convert the parameter value to int (0 or 1)
because it compares it to 1 or 0. I think this is a bit worhtless.
I am impressed by the work you have done to simplify creation of DAL
components.
I especially like TableAdapters.
However, I have found out that when you generate a TableAdapter in the
TableAdapter Designer it creates a bit weird update and delete (SQL)
procedures.
Whenever a collumn is nullable it generates special parameters to signal
that a given collumn should be null. It has a name which looks like this:
@IsColumnNameNull but its type is the same as the type of the underlying
column , instead of just making it of type int.
The generated adapter code (C#) declares it as of type int, which makes it
all work.
But this way the SQL Server must convert the parameter value to int (0 or 1)
because it compares it to 1 or 0. I think this is a bit worhtless.