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'm using LightSpeed O/R Mapper in VS2012,with .net 4.0 when I creat an lsmodel with sqlite 3.0 database ,connected successfully, then I drag some tables into the lsmodel diagram design,it still seems normal. but when I using linq ,some error occurs:Unit of work is not associated with a LightSpeedContext? why it happens,how can i solve it?Thanks a lot. here's my C# code:
neighter sum1 nor sum works. |
|
|
You need to create a UnitOfWork from a LightSpeedContext rather than new'ing one up. e.g.
|
|