lundi 28 décembre 2015

System.Data.SQLite mapping (INTEGER, long)

I'm using System.Data.SQLite to use EF6 with SQLite in an MVC project. We changed from SQL Compact Edition to SQLite. In the MVC models almost all of the IDs are stored as integers but when I use INTEGER PRIMARY KEY statement in SQLite (to make a field "autoincrement") System.Data.SQLite maps integer to long.

Is there any way to force the SQLite provider to map INTEGER into int instead of long?

Aucun commentaire:

Enregistrer un commentaire