For more details about my second question please see
http://social.msdn.microsoft.com/Forums/vstudio/en-US/bde17dd7-4c2f-4d0a-8998-08685deab37c/anonymous-class-as-methods-parameter?forum=csharpgeneral>Not much to go on here. What's in base.GetById() ?
>
>
>>I am trying to debug a code from repository:
>>
>>
>>public override Operator GetById(object id)
>> {
>> var result = base.GetById(id);
>> if (result == null)
>> return result;
>> HashOpCode(result);
>> return result;
>> }
>>
>>Unfortunately, in the locals window I see 'Could not evaluate expression' and same when I try to access properties of result in the immediate window.
>>
>>Is there a way to see the actual properties values? Why would I get this error? Could it be due to the var declaration?
>>
>>Thanks in advance.
>>
>>I also have another question - we're passing a string of OpCode as object and using base.GetById(id) method. In SQL Server profiler I'm seeing the following code
>>
>>
>>SELECT TOP (2)
>> [Extent1].[op_code] AS [op_code],
>>...
>>where op_code = @p0'
>>
>>and @p0 is set to be varchar(8000) while the actual column is char(6). How can we make Entity Framework to use the actual type and length and why does it say select top (2)?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.
My Blog