Error while trying to set the MissingSchemaAction property of NpgsqlDataAdapter [closed]

1

I'm trying to set the MissingSchemaAction property of a NpgsqlDataAdapter object, but Visual Studio is complaining that the property does not exist.

I looked at the github project and saw that NpgsqlDataAdapter inherits from DbDataAdapter , where documentation it shows that it has the property I'm trying to set.

If NpgsqlDataAdapter inherits from DbDataAdapter , why am I not able to set this property?

    
asked by anonymous 03.06.2016 / 00:32

1 answer

3

It was what I imagined, with the screenshot of the IDE you could see that you are using the wrong variable or trying to use an unavailable property for this variable. npgsqlCommand is a variable of type NpgsqlCommand and this type does not have this property. This property will be available in the npgsqlDataAdapter variable if that's what you want. That is, it seems to be just a typo.

    
03.06.2016 / 01:23