title: Entity FrameWork - Exception on SaveChanges
body: <p>I have this code saving a simple  Entity:</p>
  
  <pre><code>ExecutionEngineEntities db = new ExecutionEngineEntities();
  Task task = new Task();
  task.Message = "Test";
  task.Result = "Test";
  task.Name = "Test";
  db.Tasks.AddObject(task);
  db.SaveChanges();
  </code></pre>
  
  <p>This is the exception:</p>
  
  <pre><code>A first chance exception of type 'System.Data.UpdateException' occurred in System.Data.Entity.dll
  Unable to update the EntitySet 'Tasks' because it has a DefiningQuery and no &lt;InsertFunction&gt; element exists in the &lt;ModificationFunctionMapping&gt; element to support the current operation.
  The program '[6092] WebDev.WebServer40.EXE: Managed (v4.0.30319)' has exited with code 0 (0x0).
  </code></pre>
  
  <p>This is the create table code:</p>
  
  <pre><code>CREATE TABLE [dbo].[Tasks](
      [ID] [int] IDENTITY(1,1) NOT NULL,
      [Name] [nchar](50) NULL,
      [Message] [nchar](1000) NULL,
      [Result] [nchar](1000) NULL
  ) ON [PRIMARY]
  </code></pre>
  
  <p><strong>After searching in google I found that mode people who got this error has a relation problems, this is not my case</strong></p>
  
  <p>Thanks</p>