Not Implemented Method

Not Implemented Method

Postby Ed » Wed 09 Nov 2011 18:33

We're using EF 4.1 with Oracle and we've been testing the batch featurers that were added recently. Love them; however, found a method that has not been implemented that is holding us up from using it globally. I was wondering if there was an ETA for this method or if this was something that won't be done?

This code:

Code: Select all
OracleEntityProviderConfig efDevartConfig = OracleEntityProviderConfig.Instance;
      efDevartConfig.DmlOptions.BatchUpdates.AsynchronousBatch = true;
         efDevartConfig.DmlOptions.BatchUpdates.Enabled = true;
         efDevartConfig.DmlOptions.BatchUpdates.BatchSize = 150;
         efDevartConfig.DmlOptions.ReuseParameters = true;
         efDevartConfig.DmlOptions.InsertNullBehaviour = InsertNullBehaviour.Omit;


When executing this code:
Code: Select all
ObjectParameter resultSetParameter;
            if (resultSet != null)
            {
                resultSetParameter = new ObjectParameter("ResultSet", resultSet);
            }
            else
            {
                resultSetParameter = new ObjectParameter("ResultSet", typeof(global::System.Byte[]));
            }
   
            return base.ExecuteFunction("GetExtensionContexts", versionNumberParameter, resultSetParameter);


Code: Select all
System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.NotImplementedException: The method or operation is not implemented.
   at Devart.Common.Entity.b1.d()
   at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery)
   at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
   at Devart.Data.Oracle.Entity.e.a(CommandBehavior A_0)
   at Devart.Data.Oracle.Entity.e.b(CommandBehavior A_0)
   at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
    --- End of inner exception stack trace ---
   at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
   at System.Data.Objects.ObjectContext.CreateFunctionObjectResult[TElement](EntityCommand entityCommand, EntitySet entitySet, EdmType edmType, MergeOption mergeOption)
   at System.Data.Objects.ObjectContext.ExecuteFunction[TElement](String functionName, MergeOption mergeOption, ObjectParameter[] parameters)
   at System.Data.Objects.ObjectContext.ExecuteFunction[TElement](String functionName, ObjectParameter[] parameters)
   DomainModel.Designer.cs(10711,0): at Safeguard.SPI2.Domain.Model.DomainModelEntityManager.GetExtensionContexts(Nullable`1 versionNumber, Byte[] resultSet)
   Version Manager\VersionManager.cs(1991,0): at Safeguard.SPI2.Version_Manager.VersionManager.GetExtensionContexts(SessionManager sessionManager, Int64 version)
   SessionManagerTest.cs(92,0): at UnitTests.SessionManagerTest.TestError()


Thank you for a great product!
Ed
 
Posts: 2
Joined: Wed 09 Nov 2011 16:33
Location: United States

Postby Shalex » Fri 11 Nov 2011 14:59

Could you please try using Entity Developer (the Devart Entity Model template, *.edml) instead of EDM Wizard (ADO.NET Entity Data Model, *.edmx)? A similar issue was discussed at http://www.devart.com/forums/viewtopic.php?t=22484 .

If this doesn't help, please send us a small test project with the corresponding DDL/DML script to reproduce the problem in our environment.
Shalex
Devart Team
 
Posts: 7460
Joined: Thu 14 Aug 2008 12:44

Postby Ed » Wed 16 Nov 2011 15:51

We attempted to switch to EDML and encountered a problem.

http://www.devart.com/forums/viewtopic.php?t=22584
Ed
 
Posts: 2
Joined: Wed 09 Nov 2011 16:33
Location: United States


Return to dotConnect for Oracle