Table of Contents

Enum LogicalTypeMapping

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

How generated code represents values of logical types.

public enum LogicalTypeMapping

Fields

Native = 0

.NET types: date as DateOnly, time-* as TimeOnly (DateTime/TimeSpan on frameworks without them), timestamp-millis/micros as DateTimeOffset, local-timestamp-millis/micros as DateTime, uuid as Guid, and decimal with a precision up to 28 as decimal. Other logical types keep their underlying type.

Raw = 1

Every logical type keeps its underlying type (a date is an int).

See Also