Skip to content

Support for Variant DataType #68

@andreee94

Description

@andreee94

Clickhouse has introduced the variant data type https://clickhouse.com/docs/en/sql-reference/data-types/variant.

The clickhouse driver for c# already supports it DarkWanderer/ClickHouse.Client#436.

This works with dapper using the object or dynamic c# types, but does not work with EF Core with the following error:

The property 'Data.Value' could not be mapped because it is of type 'object', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in

Any idea how to properly map the variant type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions