title: An error occurred while preparing the command definition. See the inner exception for details EF
body: <p>An error occurred while updating the entries. See the inner exception for details.</p>
  
  <p><strong>Inner exception</strong> : "An error occurred while preparing the command definition. See the inner exception for details."</p>
  
  <p>I'm using Oracle as Entity Framework and Database.
  When i am trying get result using EF it's working fine. But when i am trying to insert a record into the table I am getting this issue.
  This is the code:</p>
  
  
  
  <pre><code>try{
    Table1 Obj = new Table1();
    Obj.col1 = 2010;
    Obj.col2 =0;
    Obj.col3 = 103907;
    Obj.col4 = 14145;
    DataContext1 dbContext = new DataContext1();
    dbContext.AddToTable1(Obj);
  
    dbContext.ObjectStateManager.ChangeObjectState(Obj,System.Data.EntityState.Added);
    dbContext.SaveChanges();
  
  }catch(Expectation ex)
    {
  
    }
  </code></pre>