SqlCeParameter.set_IsNullable is showing up instead of SqlCeParameter.IsNullable????

  • Thread starter Thread starter John Tenney
  • Start date Start date
J

John Tenney

I'm trying to set the IsNullable property for a SqlCeParameter object, but
instead I only get set_IsNullable and get_IsNullable methods instead of the
property shown in the documentation. When I try to used the method I get
'System.Data.SqlServerCe.SqlCeParameter.IsNullable.set: cannot explicitly
call operator or accessor' from the compiler.


Could I have the wrong version of System.Data.SqlServerCe? How can I check
the version other than what is shown in the IDE property window which is
1.0.50000.0?

Thanks,

John Tenney
 
John Tenney said:
I'm trying to set the IsNullable property for a SqlCeParameter object, but
instead I only get set_IsNullable and get_IsNullable methods instead of the
property shown in the documentation. When I try to used the method I get
'System.Data.SqlServerCe.SqlCeParameter.IsNullable.set: cannot explicitly
call operator or accessor' from the compiler.


Could I have the wrong version of System.Data.SqlServerCe? How can I check
the version other than what is shown in the IDE property window which is
1.0.50000.0?

Thanks,

I get the same as you. However, if you use .IsNullable it compiles, even
though it doesn't show up in intellisense.

Cheers,

Helen
 
That seems to be a bug in Intellisense, there's nothing wrong with
System.Data.SqlServerCe.

Just type it as if it's a property and it will work:

C#:

p.IsNullable = true;

VB:

p.IsNullable = true

(p is a SqlCeParameter object).

Also, don't forget to add a reference to System.Data.Common.dll or it won't
work.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Back
Top