Skip to content

Models containing enum values throw Can't write CLR type #105

Description

@jbrezina

I get the exception while trying to write to DB any data containing enums mapped to DB as ints (C# classes use enums in model classes and DB use INTEGER)
Can't write CLR type ReportServerORM.Model.TransactionCodeState with handler type Int32Handler

https://github.com/purple-technology/EFE-issue

  • update the connection string in TestingORM/DAL/TestingContext.cs
  • generate DB using the following command in Package Manager Console in VS
    EntityFramework\update-database -ProjectName TestingORM -StartUpProjectName TestingORM -Verbose
  • run - the exception is thrown

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions