Table of Contents

Enum DataType

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

MySQL column data types.

public enum DataType

Fields

BigInt = 5
Binary = 18
Bit = 9
Blob = 21
Char = 10
Date = 24
DateTime = 26
Decimal = 6
Double = 8
Enum = 16
Float = 7
Geometry = 30
Int = 4
Json = 29
LongBlob = 23
LongText = 15
MediumBlob = 22
MediumInt = 3
MediumText = 14
Set = 17
SmallInt = 2
Text = 13
Time = 25
Timestamp = 27
TinyBlob = 20
TinyInt = 1
TinyText = 12
Unspecified = 0

No explicit type was declared on the column. The type is inferred from the CLR property type via InferColumn(Type, int?). This is the default so that [Column(Name = "x")] without a DataType infers correctly instead of silently resolving to TinyInt.

VarBinary = 19
VarChar = 11
Year = 28