Inheritance problem
Posted: Thu 19 Jan 2012 09:01
Hi ,
We have an this problem with a datacontext.
We found the same problem in the following topics with dotConnect for MySql:
http://www.devart.com/forums/viewtopic. ... f615fbe8c1
This is our DataContext:
This is the Stored procedure call, GetThreadById, which we have in ThreadDataContext.ThreadDataContext.cs file (generated by Devart)
The raised exception by:
Is this:
The binary operator Equal is not defined for the types ‘System.Nullable`1[System.Int32] ' and 'System.Int32'
We have an this problem with a datacontext.
We found the same problem in the following topics with dotConnect for MySql:
http://www.devart.com/forums/viewtopic. ... f615fbe8c1
This is our DataContext:
This is the Stored procedure call, GetThreadById, which we have in ThreadDataContext.ThreadDataContext.cs file (generated by Devart)
Code: Select all
public System.Data.Linq.ISingleResult GetThreadById(System.Nullable pidthread)
{
IExecuteResult _GetThreadByIdResult = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), pidthread);
return ((System.Data.Linq.ISingleResult)(_GetThreadByIdResult.ReturnValue));
}
Code: Select all
IExecuteResult _GetThreadByIdResult = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), pidthread);
Is this:
The binary operator Equal is not defined for the types ‘System.Nullable`1[System.Int32] ' and 'System.Int32'