I'm building a web API using Asp.Net core 3.0 with EFcore. I'm using code first approach. I did my initial migration with this model
public class Group {
[Key]
public int Id{get;set;}
public string Title { get; set; }
}
Later I added a foreign key relationship to this model
public class Group {
[Key]
public int Id{get;set;}
public string Title { get; set; }
[ForeignKey("UserId")]
public User User { get; set; }
public int UserId { get; set; }
}
The new migrations generates properly when I run Add-Migration <migrationName> on PMC. But when I run update-database I get this error: SQLite does not support this migration operation ('DropForeignKeyOperation')