I thought that it was a good idea to prefix some of my tables with the name of the area:
MyNewSubProject.Table1
MyNewSubProject.Table2
Unfortunately when I'm going to map these tables with Entity Framework Code First with the model builder:
modelBuilder.Entity<Entity>().ToTable("MyNewSubProject.Table1");
Throws the exception:
(System.Data.Entity.Infraestructure.DbUpdateException)
{"Invalid object name 'MyNewSubProject.Table1'."}
The table name is correct. I've tried to add the schema but no luck. If I remove the dot everything goes great.
Any way to use the dot?
Thanks ;)