title: EF doesn't save the whole complex object in db
body: <p>I have a EF code updating complex object (User object contains Address object). But when I want to update User's Address object properties while User object update process. After User's update process, updated User's properties are saved in db, but updated Address's properties are still the same in database (not saved). 
  Where is the problem?
  ?</p>
  
  <p>My code is here:</p>
  
  <pre><code>public class User : BaseEntity
      {
  
          public string Username { get; set; }
          public string Passwd { get; set; }
          public string Firstname { get; set; }
          public string Middlename { get; set; }
          public string Secondname { get; set; }
          public DateTime BirthDate { get; set; }
          public string Email { get; set; }
          public string Mobilenumber { get; set; }
          public bool IsActivated { get; set; }
          public string ActivationCode { get; set; }
          public StatusEnum? CurrentStatus { get; set; }
          public DateTime? CurrentCreateSession { get; set; }
          public StatusEnum? PreviousStatus { get; set; }
          public DateTime? PreviousCreateSession { get; set; }
          public virtual Address Address { get; set; }
   }
  
  
   public class Address : BaseEntity
      {
          //[JsonProperty("street")]
          public string Street { get; set; }
  
          //[JsonProperty("city")]
          public string City { get; set; }
  
          //[JsonProperty("zipcode")]
          public string ZipCode { get; set; }
  
          //[JsonProperty("country")]
          public string Country { get; set; }
  }
  
   public virtual void Edit(TEntity entityToUpdate)
          {
              DbSet.Attach(entityToUpdate);
              Context.Entry(entityToUpdate).State = EntityState.Modified;
          }
  
   public void SaveChanges()
          {
              Context.SaveChanges();            
          }
  </code></pre>