The table A with primary key Id exists in the database.
I have a model for class B:
class B{
public int Id{get;set;}
public int AId{get;set;}
}
Can I make AId to be a foreign key from table A without defining the model for table A?
The only solution I've found was to create an empty migration and edit Up and Down methods like this: