title: linq to sql Cannot access a disposed object. Returning a new created object
body: <p>I am simply creating a new object that has one to on relationship. A comment to a User relation.  When I try to retrieve the new object I get the error Cannot access a disposed object. I am not sure what is going on. Thanks for any help or suggestions.</p>
  
  <pre><code>     using (var db = new LinqEntityDataContext())
              {
  
                  var comment = new Comment();
                  comment.CommentBy = GlobalVariables.User.ID;
                  comment.OutPutMessage = commentText.Trim();
                  comment.PhotoID = int.Parse(pictureID);
                  comment.CommentDate = DateTime.Now;
                  db.Comments.InsertOnSubmit(comment);
                  db.SubmitChanges();
                  return comment;
              }
  </code></pre>