Skip to content

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

@jbrezina

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

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