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
|
From a post from last year (http://www.mindscape.co.nz/forums/Thread.aspx?PostID=7944) it was clear that LightSpeed doesnt have an ExecuteCommand equivalent. But why not? The syntax of this: http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.executecommand.aspx Looks so much nicer and cleaner then having to play with command's again. Definitly when you also have to use parameters. Commands also bring back the horrid ADO feelings again (aaargggh). Please add ExecuteCommand support :) Regards, Jerremy |
|
|
ExecuteCommand doesn't require any support from the LightSpeed core -- you can write it yourself as an extension method. Here's my implementation: public static int ExecuteCommand(this IUnitOfWork u, string command, params object[] args) WARNING: The code above achieved the coveted "worked on my machine in a couple of simple test cases" standard. It has not been tested any further than that. |
|