Entity Framework 6 with SQLite 3 Code First - Won't create tables

后端 未结 4 1954
我寻月下人不归
我寻月下人不归 2020-11-27 03:04

Using latest versions of EF6 and SQLite from NuGet. I finally got the app.config file to work after some useful posts on Stackoverflow. Now the problem is that the tables ar

4条回答
  •  臣服心动
    2020-11-27 03:19

    I decided to write my own rudimentary database initializer to solve this problem.

    You can check it out here: https://gist.github.com/flaub/1968486e1b3f2b9fddaf

    It supports:

    • Many-to-Many relationships
    • Code-First data annotations like:
      • [Key]
      • [Required]
      • [Index]
      • [ForeignKey]

提交回复
热议问题