Owned type mapping EF Core fails when saving

Consider using virtual properties. This can also be used for lazy loading in your application

 public class Account 
 {
  public GUID Id { get; set; }
  public string Email { get; set; }
  public virtual StreetAddress Address { get; set; }
 }

public class StreetAddress
{
  public string Name { get; set; }
  public string Address { get; set; }
  public string Zipcode { get; set; }
  public string City { get; set; }
  public string  Country { get; set; }
  public virtual Location Location { get; set; }
}

public class Location
{
  public double Lat { get; set; }
  public double Lng { get; set; }
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)