Table of Contents

Enum StorageType

Namespace
CL.MySQL2.Models
Assembly
CL.MySQL2.dll

Optional physical-storage override for a column. When set to anything other than Default, the storage type takes precedence over DataType for DDL generation. For certain CLR types automatic value conversion is applied (e.g. a Guid property with Binary is stored as BINARY(16) with big-endian byte conversion).

public enum StorageType

Fields

Binary = 1

Fixed-length binary. Uses Size for explicit length; for Guid auto-sizes to 16.

Blob = 4

Binary large object (max 65 535 bytes).

Default = 0

No override — use DataType as-is.

LongBlob = 6

Long binary large object (max 4 GB).

MediumBlob = 5

Medium binary large object (max 16 MB).

TinyBlob = 3

Tiny binary large object (max 255 bytes).

VarBinary = 2

Variable-length binary. Uses Size (default 255).