LikeToCode
LikeToCode

Reputation: 767

Entity Framework with SQLite

I am trying to create entities out of a SQLite database. SQLite doesnt have foreign keys, therefore I cannot map associations between entities. Is there a way to map them somehow?

Upvotes: 1

Views: 630

Answers (2)

Pablote
Pablote

Reputation: 5083

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.

Upvotes: 0

Tim Sylvester
Tim Sylvester

Reputation: 23128

SQLite 3.6.19 supports foreign keys.

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

Upvotes: 4

Related Questions