The key does not match the encrypted data. However, the exception wording may not be accurate. For example, it may say "Not enough storage is available to process this command"
@avatasia 很奇怪啊,我确实用sql profiler看了,是没有top的。。。 难道跟Linq版本有关,我是4.0; C#查询是: var ret = App_Case_Alls.Single(c => c.Case_type == 1); Console.Write(ret);
sql profilerie截到的sql是:
exec sp_executesql N'SELECT [t0].[case_id] AS [Case_id], [t0].[case_type] AS [Case_type], [t0].[req_no] AS [Req_no] FROM [app_Case_All] AS [t0] WHERE [t0].[case_type] = @p0',N'@p0 int',@p0=1