1. I have this stored procedure
Code: Select all
CREATE OR REPLACE FUNCTION AssignMentionsToTask(taskId bigint, mentionIds TEXT) RETURNS VOID
AS
'
-- UPDATE EVERYTHING i NEED... PLEASE...
'
LANGUAGE SQL
VOLATILE
RETURNS NULL ON NULL INPUT;
Code: Select all
public void AssignMentionsToTask (global::System.Nullable taskid, string mentionids)
{
if (this.Connection.State != System.Data.ConnectionState.Open)
this.Connection.Open();
System.Data.EntityClient.EntityCommand command = new System.Data.EntityClient.EntityCommand();
if(this.CommandTimeout.HasValue)
command.CommandTimeout = this.CommandTimeout.Value;
command.CommandType = System.Data.CommandType.StoredProcedure;
command.CommandText = @"DataEntities.AssignMentionsToTask";
command.Connection = (System.Data.EntityClient.EntityConnection)this.Connection;
EntityParameter taskidParameter = new EntityParameter("taskid", System.Data.DbType.Int64);
if (taskid.HasValue)
taskidParameter.Value = taskid;
command.Parameters.Add(taskidParameter);
EntityParameter mentionidsParameter = new EntityParameter("mentionids", System.Data.DbType.String);
if (mentionids != null)
mentionidsParameter.Value = mentionids;
command.Parameters.Add(mentionidsParameter);
command.ExecuteNonQuery();
}
3. I run it and the line "command.ExecuteNonQuery()" generates this error
Code: Select all
EntityCommandExecutionException
InnerException: The method or operation is not implemented.
StackStace: at Devart.Common.Entity.au.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.PostgreSql.Entity.j.a(CommandBehavior A_0)
at Devart.Common.Entity.b5.b(CommandBehavior A_0)
at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)