Entity Framework with mysql, Table Capitalization issue between linux and windows

后端 未结 4 1684
暗喜
暗喜 2021-02-15 17:07

We are currently developing a product using Code First Entity Framework and Mysql. The development database is hosted in a Windows environement while the production mysql is on

4条回答
  •  梦毁少年i
    2021-02-15 17:49

    Here is my answer taken from the comments:

    usr: Why don't you change the configured table name to lowercase? The SQL table name and the entity name are independently configurable.

    AFrieze: Do you mean change the entity name to lowercase? So instead of a C# class "Industry" I would have a class "industry"?

    usr: No the two are different. You can have table name xyz mapped to entity Abc. – usr just now edit

提交回复
热议问题