title: type ObjectQuery or DbQuery Error when updating a object
body: <p>Below is the object</p>
  <pre><code>namespace TestingForCw2.Shared
  {
     public class Dog
     {
         [Key]
         public Int32 Id { get; set; }
         public string DogName { get; set; }
         public Int32 DogAge { get; set; }
     }
  }
  
  </code></pre>
  <p>This is the code for updating a Dog object in asyncrnous,</p>
  <pre><code>        public async Task&lt;bool&gt; UpdateDog(Dog dog)
          {
              try
              {
                  await _appDbContext.Dog.Where(d =&gt; d.Id == dog.Id).UpdateAsync(d =&gt; new Dog
                  {
                      DogName = dog.DogName
                      , DogAge = dog.DogAge
                  });
  
                  return true;
              }
              catch(Exception exception)
              {
                  return false;
              }
          }
  </code></pre>
  <p>Although for some reason i get the following error</p>
  <p>Error : <strong>The query must be of type ObjectQuery or DbQuery. (Parameter 'source')</strong></p>
  <p>Hope someone can help me to fix this, thank you!</p>