Enum StorageType
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 = 1Fixed-length binary. Uses Size for explicit length; for Guid auto-sizes to 16.
Blob = 4Binary large object (max 65 535 bytes).
Default = 0No override — use DataType as-is.
LongBlob = 6Long binary large object (max 4 GB).
MediumBlob = 5Medium binary large object (max 16 MB).
TinyBlob = 3Tiny binary large object (max 255 bytes).
VarBinary = 2Variable-length binary. Uses Size (default 255).