开发者

Entity Framework with SQLite

开发者 https://www.devze.com 2022-12-10 00:39 出处:网络
I am trying to create entities out of a SQLite database. SQLite doesnt have foreign keys, therefore I cannot map associations between entities. Is ther开发者_如何学JAVAe a way to map them somehow?SQLi

I am trying to create entities out of a SQLite database. SQLite doesnt have foreign keys, therefore I cannot map associations between entities. Is ther开发者_如何学JAVAe a way to map them somehow?


SQLite 3.6.19 supports foreign keys.

http://www.sqlite.org/draft/foreignkeys.html


Actually previous versions do "support" foreign keys, but it doesn't enforce them. This means that you can declare the foreign keys and the EF designer will pick up the entity relationships.

0

精彩评论

暂无评论...
验证码 换一张
取 消