Problem moving EF Model from VS 2008 to VS 2010
Posted: Tue 02 Aug 2011 04:48
Hello,
Recently I upgraded my project that uses dotConnect for Oracle to model a DB schema from VS 2008 to VS 2010. Things seemed to be going fine until I tried to call a modeled stored procedure that returns an entity. When I do I get the following error...
"The type of the key field is expected to be 'System.Int64', but the value provided is actually of type 'System.String'."
The field in question is a "USER_ID" field that when modeled (and shown in the Mapping Table in VS 2010) is defined as an Int64 and models a column in the DB that is a NUMBER(15).
My DLL used dotConnect for Oravle and the Entity Framework and was built using VS 2008. And it still works fine in VS 2008 but after moving it to VS 2010 I get the above error.
Can someone please tell me what could be causing the problem?
Thanks,
Joe
Recently I upgraded my project that uses dotConnect for Oracle to model a DB schema from VS 2008 to VS 2010. Things seemed to be going fine until I tried to call a modeled stored procedure that returns an entity. When I do I get the following error...
"The type of the key field is expected to be 'System.Int64', but the value provided is actually of type 'System.String'."
The field in question is a "USER_ID" field that when modeled (and shown in the Mapping Table in VS 2010) is defined as an Int64 and models a column in the DB that is a NUMBER(15).
My DLL used dotConnect for Oravle and the Entity Framework and was built using VS 2008. And it still works fine in VS 2008 but after moving it to VS 2010 I get the above error.
Can someone please tell me what could be causing the problem?
Thanks,
Joe