Skip to content

The specified cast from a materialized 'System.Int16' type to the byte type is not valid. #53

@Aravind2601

Description

@Aravind2601

Hi @staticlibs ,
we have column in our one of the table as 'tinyint' type and for mapping in csharp side we have byte enum like below. But we got error while mapping that column value.
public enum Datavalue : byte
{
None = 0,
One = 1,
Two= 2,
Three = 3
}
Error: The specified cast from a materialized 'System.Int16' type to the byte type is not valid.
Could please help us on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedThe bug was fixed in released version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions