Pavel wrotes:

>
> I don't know C#, but quick look at Microsoft's documentation shows that you 
> can get Ticks() from TimeSpan, save it into DB and then when you get Int64 
> from DB you can create TimeSpan from it.
>


Seems not to work entity framework cannot convert "long" to the type "TimeSpan".
I know I can make a "long" field and extend the entity class with a "TimeSpan" 
property that convert it.
But I want to find a "entity framework way" to do this.

Here the EDMX generator error:

Member Mapping specified is not valid. The type 
'Edm.DateTimeOffset[Nullable=False,DefaultValue=,Precision=]' of element 'Type 
' of member 'TestProperty' in type 'TestEntity' is not compatible with 'Typ' of 
member 'SQLite.integer[Nullable=False,DefaultValue=]' in type 'TestEntity'.

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to