I am trying to run your example code and am getting the following error:
As a side note, my ultimate goal is to get your provider implementation to work with a normal EF model (ObjectContext - not DbContext). I need to be able to create ServiceActions that can be called while passing parameters via the HTTP request body due to the large nature of my parameter data. I hope I'm in the right place. Thanks!
-Tim
The server encountered an error processing the request. The exception message is 'Exception has been thrown by the target of an invocation.'. See server logs for more details. The exception stack trace is:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Services.DataServiceConfiguration.InvokeStaticInitialization(Type type) at System.Data.Services.DataServiceConfiguration.Initialize(Type type) at System.Data.Services.DataService`1.CreateProvider() at System.Data.Services.DataService`1.HandleRequest() at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
I am running VS 2012.2 and have updated to the latest packages (EntityFramework 5.0.0). I am not used to code-first. Is there anything I should be doing to make that work (e.g. a connection string)?As a side note, my ultimate goal is to get your provider implementation to work with a normal EF model (ObjectContext - not DbContext). I need to be able to create ServiceActions that can be called while passing parameters via the HTTP request body due to the large nature of my parameter data. I hope I'm in the right place. Thanks!
-Tim