craiggwilson/Simple.Data.MongoDB — Issue #7: DateTime property
Author: peterkeating
Created: 2012-01-20 17:23:24+00:00
State: open

Hello,

I am having an issue when trying to cast an object that has a DateTime property.

In the tests, when adding a DateTime property to the User class, then running the tests 5 failed with the same exception, displayed below.

System.InvalidCastException : Invalid cast from 'Int64' to 'DateTime'.

I am not sure if this is specific to your Adapter or the Simple.Data library, but in the project that I was developing on when coming across the exception, I was using the InMemoryAdapter in my test suite and no exception is thrown.

Hope this helps :)