Repository navigation
Work around binary writing support - #2445
Conversation
* Support writing bytea from ReadOnlyMemory<byte> and Memory<byte> * Support async I/O when making direct writes Closes npgsql#2392, npgsql#2444
| "bytea", | ||
| NpgsqlDbType.Bytea, | ||
| DbType.Binary, | ||
| new[] { typeof(byte[]), typeof(ReadOnlyMemory<byte>), typeof(Memory<byte>), typeof(ArraySegment<byte>) })] |
There was a problem hiding this comment.
Should this be put into a conditional compilation block too? Or should conditions be completely removed?
There was a problem hiding this comment.
Is there a reason for conditional compilation here? Memory and ROM are supported back on netstandard2.0 via the System.Memory nuget (even if they're less efficient).
There was a problem hiding this comment.
Just don't understand why do we need #if !NETSTANDARD2_0 && !NET461 block everywhere except this place?
There was a problem hiding this comment.
AFAIK all places where we have #if, it's because something isn't supported on netstandard2.0/net461 - this is simply not the case here, it's supported. Can you point to an #if which you don't understand?
There was a problem hiding this comment.
Sorry, my fault! I already forgot the context of this PR, you're right - we shouldn't register Memory on TFMs where it can't be written...!
Closes #2392, #2444