public decimal?Delete(QoalaEntities context) { var outParameter = new ObjectParameter("ROWCOUNT", typeof(decimal)); context.SP_DELETE_POST(ID_POST, outParameter); context.Entry(this).State = EntityState.Unchanged; return(1); }