Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement inference for NpgsqlParameter.DataTypeName from NpgsqlDbType/DbType/ClrType #2520
Write a simple line of code in a C# console project as:
var field1 = new NpgsqlParameter("par_field1", NpgsqlDbType.Varchar, 50);
and i got the following error:
'field1 .DataTypeName' threw an exception of type 'System.NotImplementedException'
i'm using now:
Thanks for your help!
If you use the debugger to look at a property, its getter is called. And as I wrote above, NpgsqlParameter.DataTypeName currently works only if you write to it first, otherwise it throws NotImplementedException. You can simply ignore this exception while debugging.