This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I downloaded Lightspeed to try it and see how it works, and while following Getting started tutorial i got it to insert data into tables, but when i try to access entitycollection from holder entity i got an error Unable to materialize field [TicketID] on type [TestProject.TicketItem] while inner exception says: {"Specified cast is not valid."} What is interested is that i have try to run your samples (Queries) and get same error. The example that i try to run is: public void Orm6() and the example throws an errror at IList<CustomerOrder> orders = UnitOfWork.Find<CustomerOrder>(query); Stack trace is:
Exception: Do you know what can cause this problem ?
|
|
|
Hi, This is caused by a data type mismatch between the database column and the field type. Can you tell me the column type of TickedID? Cheers, Andrew. |
|
|
Hi Andrew, I'm using VS 2008 (C#) + SQLite. TicketID property type is int and Column type i INTEGER |
|
|
Hi Change column type to INT as INTEGER maps to long. Cheers, Andrew. |
|
|
Thnx, it works now :) |
|