Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

TypeConverters are not invoked for dynamic projections #416

@TrevorPilley

Description

@TrevorPilley

When a projection is used, the type converters are not invoked so if you have the following:

public enum CustomerStatus { ... }

public class Customer
{
    public string Name { get; set; }
    public CustomerStatus Status { get; set; }
}

And do the following:

var customers = session.FetchAsync<dynamic>(new SqlQuery("SELECT Name, Status FROM Customer"));

customers[0].Status would be an int, not a CustomerStatus

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions