Sorry about that. 2.6 Final is the version I'm using. And I am indeed using self-servicing.
My Trace Result:
Method Enter: CreatePagingSelectDQ
Method Enter: CreateSelectDQ
Method Enter: CreateSelectDQ
Generated Sql query:
Query: SELECT DISTINCT TOP 1 COUNT(*) AS [LPAV_] FROM [ManifestServices].[dbo].[DatabaseState] [LPLA_1] WHERE ( ( ( [LPLA_1].[Parameter] = @Parameter1)))
Parameter: @Parameter1 : AnsiString. Length: 50. Precision: 0. Scale: 0. Direction: Input. Value: "Lock".
Method Exit: CreateSelectDQ
Method Exit: CreatePagingSelectDQ: no paging.
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
: Initial expression to process:
value(SD.LLBLGen.Pro.LinqSupportClasses.DataSource`1[CLS.DataAccess.EntityClasses.DatabaseStateEntity]).Where(i => (i.Parameter = "Lock"))
Method Enter: DaoBase.PerformGetMultiAction
Method Enter: CreatePagingSelectDQ
Method Enter: CreateSelectDQ
Method Enter: CreateSelectDQ
Generated Sql query:
Query: SELECT [LPLA_1].[Parameter], [LPLA_1].[DateStamp], [LPLA_1].[Value] FROM [ManifestServices].[dbo].[DatabaseState] [LPLA_1] WHERE ( ( ( [LPLA_1].[Parameter] = @Parameter1)))
Parameter: @Parameter1 : AnsiString. Length: 50. Precision: 0. Scale: 0. Direction: Input. Value: "Lock".
Method Exit: CreateSelectDQ
Method Exit: CreatePagingSelectDQ: no paging.
Method Enter: DaoBase.ExecuteMultiRowRetrievalQuery
Method Exit: DaoBase.ExecuteMultiRowRetrievalQuery
Method Exit: DaoBase.PerformGetMultiAction
It doesn't like the delete ever gets processed, although it doesn't throw an exception and the loop continues.