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
|
Hi, Ivan, I gave you list of the changes I made to augment "Afterload" functionality while ago. I was glad you mentioned you will review it for patching. I just read the blog on compiled query and it sounds really cool. I would like to give it try, currently I can't without the patch applied. Besides, I haven't updated Lightspeed for a while and I might potentially reporting a bug on out-of-sync'ed version. Could you please let me know how it's making progress? Thanks. -chris |
|
|
Hi Chris, I found a couple of minor bugs in the patch and I had a bit of a concern about some of the implementation detail, so I haven't been progressing this so far. I've now had another look at it and I think I can probably resolve the issues so I'll try to get this sorted in time for the next nightly. |
|
|
Okay, this will be in the next nightly build. You should, however, still write your AfterLoad implementation defensively. If your entity is loaded via a stored procedure, or from a NoSQL database, or takes part in certain types of client-side projection, then eager loading does not happen -- all associations will be lazy loaded. You may not plan to use stored procedures or projections, but strange things can happen during maintenance! At the very least check that the association is loaded and fail with a meaningful message e.g.
Please let us know if you run into any problems. Note that our implementation of this change is slightly different to yours, and specifically we do not provide an IsPrepared property on the Entity class; we don't think your application code would have relied on that anyway, but if it did, you will now need to implement it in your own entity classes and set it from your AfterLoad implementation. |
|
|
Awesome!! I'll be looking forward to it. Thanks a lot! -chris |
|
|
It looks like we had a hiccup in the overnight build, so this won't be available for download immediately I'm afraid. Tomorrow night, I promise! |
|
|
no problem. I really appreciate for your help. |
|
|
no problem. I really appreciate for your help. |
|
|
Hi, Ivan, I verified that it works beautifully. Thanks a lot! However there is one minor problem. I'm using SqlServerCE4 and it took me a while trying to figure out why it wouldn't work correctly after updating source code. It turns out that assembly version of Mindscape.Lightspeed.Provider.SqlServerCe4.dll and compiled version of Mindscape.Lightspeed.dll is different. I had to modify Framework/Properties/AssemblyVersionInfo.cs to match version info to make it work. Hope it gets noted for the future. Thanks a bunch. -chris |
|