I have got model with M:N relation like this:
[Table("Messages", Schema = "public")]
public class Message
{
public int Id { get; set; }
public virtual IList<Phone> Phones{ get; set; }
}
[Table("Phones", Schema = "public")]
public class Phone
{
public int Id { get; set; }
public virtual IList<Message> Messages{ get; set; }
}
So EF generates middle table for me... But default schema of table is not public (it is what i need), but still dbo. And gives me error: schema "dbo" does not exist.
How can I change table schema of MessagePhone table, without creating MessagePhone model class?