Skip to content

Commit 8894090

Browse files
committed
Update documentation with Stream parameter support.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent c2c9f32 commit 8894090

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/content/troubleshooting/parameter-types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ In some cases, this may be as simple as calling `.ToString()` or `.ToString(Cult
3838

3939
* .NET primitives: `bool`, `byte`, `char`, `double`, `float`, `int`, `long`, `sbyte`, `short`, `uint`, `ulong`, `ushort`
4040
* Common types: `BigInteger`, `DateOnly`, `DateTime`, `DateTimeOffset`, `decimal`, `enum`, `Guid`, `string`, `TimeOnly`, `TimeSpan`
41-
* BLOB types: `ArraySegment<byte>`, `byte[]`, `Memory<byte>`, `ReadOnlyMemory<byte>`
41+
* BLOB types: `ArraySegment<byte>`, `byte[]`, `Memory<byte>`, `ReadOnlyMemory<byte>`. `MemoryStream`
42+
* NOTE: `System.IO.Stream` and derived types (other than `MemoryStream`) are supported only when `MySqlCommand.Prepare` is called first. The data in the `Stream` will be streamed to the database server as binary data.
4243
* Vector types: `float[]`, `Memory<float>`, `ReadOnlyMemory<float>`
4344
* String types: `Memory<char>`, `ReadOnlyMemory<char>`, `StringBuilder`
4445
* Custom MySQL types: `MySqlDateTime`, `MySqlDecimal`, `MySqlGeometry`

0 commit comments

Comments
 (0)