samedi 16 janvier 2016

Entity Framework 7 and SQLite typeless(aka sql_variant in mssql) column

On previous project I used SQLite database and in one of the tables I had column with undefined type so this column was able to store any type(datetimes was in datetime format, decimals in decimal format and etc). To retrieve data I used ado.net.

In current case ef code first fits better to my needs. So I tried to do it with EF 7.0.0-rc1-final but it throws exception on adding migration.

So is there any way to create entity with property of type object and update database using ef?

Aucun commentaire:

Enregistrer un commentaire