I am trying to Data seed in EF core DbContext that has some json column.
public class MapPoint
{
public Guid Id { get; set; }
public Location Location { get; set; }
}
public class Location
{
public int x { get; set; }
public int y { get; set; }
public int width { get; set; }
public int height { get; set; }
}
I Added Data seed in Db context OnModelCreating and when I want to Add-Migration I get this error:
Unable to create a ‘DbContext’ of type ”. The exception ‘Can’t use HasData for entity type ‘MapPoint’. HasData is not supported for entities mapped to JSON.’