Page 1 of 1

simple entity update getting stuck in oci dll

Posted: Fri 08 Jul 2011 06:58
by kussaued
This code works fine:

Code: Select all

TwinTagEntities entityContext = new Entities.TwinTagEntities();
MyCompany.Entities.ACHSE wagen = (from achse in entityContext.ACHSEs select achse).First();
wagen.RECORDSTATUS = 0;
entityContext.SaveChanges();
While this code placed just after the above call will never return from the SaveChanges() call. According to my debugger it is stuck in an OCI execute statement in a OCI dll (got a using MyCompany.Entities in my code):

Code: Select all

TwinTagEntities entityContext2 = new Entities.TwinTagEntities();
Entities.ACHSE wagen2 = (from achse in entityContext2.ACHSEs select achse).First();
wagen2.RECORDSTATUS = 0;
entityContext2.SaveChanges();
The only difference I see is the usage of a fully qualified name in example one
Entities.ACHSE wagen3 =
instead of
MyCompany.Entities.ACHSE wagen2 =
Do you got any idea what could be the cause of this behavior or any advice on how to further debug this issue?

Thanks for any help
  • Visual Studio 2010 in a C#/WPF project
    .NET framework 3.5

Posted: Fri 08 Jul 2011 10:18
by AndreyR
Could you please send us a test project illustrating the reported behaviour?
This is unexpected behaviour at the first sight.