Object reference not set on procedure call
Posted: Wed 08 Oct 2014 15:54
Hello,
I use DB first and I import insert procedure for my entity with 2 parameters where second is output cursor with generated Id. But when somebody change procedure and add input parameter to middle I get error when I try to call procedure. There is no problem with exception on call but with message. Error looks like this
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Devart.Data.Oracle.Entity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void a(System.Collections.Generic.IEnumerable`1[System.Data.Common.DbParameter], Devart.Common.Entity.el)
HResult : -2147467261
Stack Trace : at Devart.Data.Oracle.Entity.z.a(IEnumerable`1 A_0, el A_1)
at Devart.Data.Oracle.Entity.aj.b(CommandBehavior A_0)
at System.Data.Mapping.Update.Internal.FunctionUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues)
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
Can you return better excpetion with message that I have wrong number of parameters?
Regards
I use DB first and I import insert procedure for my entity with 2 parameters where second is output cursor with generated Id. But when somebody change procedure and add input parameter to middle I get error when I try to call procedure. There is no problem with exception on call but with message. Error looks like this
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Devart.Data.Oracle.Entity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void a(System.Collections.Generic.IEnumerable`1[System.Data.Common.DbParameter], Devart.Common.Entity.el)
HResult : -2147467261
Stack Trace : at Devart.Data.Oracle.Entity.z.a(IEnumerable`1 A_0, el A_1)
at Devart.Data.Oracle.Entity.aj.b(CommandBehavior A_0)
at System.Data.Mapping.Update.Internal.FunctionUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues)
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
Can you return better excpetion with message that I have wrong number of parameters?
Regards