I have applied change tracking (http://msdn.microsoft.com/en-us/library/cc280462.aspx) in some tables in which I use Linq2Sql.
As part of this, I need to add the following SQL to the top of the generated update statements.
DECLARE @originator_id varbinary(128); SET @originator_id = CAST('SyncService' AS varbinary(128)); WITH CHANGE_TRACKING_CONTEXT (@originator_id) ....generated statements.... .... ....
I know that I can create stored procedures and manually display fields, but I would like to avoid this if possible.
Does anyone know a way to override and edit SQL on SubmitChanges ()?
source share