title: Cannot find reference for "SubmitChanges"
body: <p>I am writing a web service, using C# and Linq. I am fairly new to this, and using tutorials on line I have been able to do most everything I need. I have web services for a variety of complex operations on my database.</p>
  
  <p>Where I <em>have</em> run into a problem is with adding records to my tables. I have followed a number of tutorials, which all seem very simple, but I have a reference that I am clearly missing and cannot find. I am using SQL Server (2008), and have built a WCF Service Library. The start of the code is:</p>
  
  <pre><code>public const int RET_OK = 0;
  public const int RET_NOT_OK = -1;
  
  public const int RET_TICKET_NO_SERVER = -1;
  
  int retInt;
  xxxxEntities3 xxxxDB = new xxxxEntities3();
  
  public int CreateTicket(ref string strServer)
  {           
      if ((strServer == null) || (strServer.Length == 0))
      {
          return(RET_TICKET_NO_SERVER);
      }
  
      ticket tick = new ticket();
      tick.serveTime = DateTime.Now;
      tick.server = strServer;
  
      xxxxDB.tickets.AddObject(tick); 
  
      return (0);
  }
  </code></pre>
  
  <p>I have made sure to add a reference to the System.Data.Linq assembly, and I have verified that the .edmx file is correct (all of my "reading" web services work great).</p>
  
  <p>The problem is that when I try to insert changes (with something like this):</p>
  
  <pre><code>xxxxDB.tickets.SubmitChanges(tick);
  </code></pre>
  
  <p>I get that the SubmitChanges is not found (it asks if I am missing a reference). Am I? I am sure this is very simple, but I must be too tired - I just don't see it.</p>
  
  <p>Thanks in advance!</p>