- Hyphen
- Period
- Any special character
System.ArgumentException: The modelEntityContainerName parameter 'PDShopLittleShopOfHorrors-DevContext' contains characters that are not valid. at System.Data.Entity.Design.EntityModelSchemaGenerator..ctor(EntityContainer storeEntityContainer, String namespaceName, String modelEntityContainerName) at Microsoft.DbContextPackage.Handlers.ReverseEngineerCodeFirstHandler.ReverseEngineerCodeFirst(Project project)
So, how do you get around it?
- Rename the database to use an underscore instead
- Do a Code First another way, such as building your models and using the model builder.
0 comments:
Post a Comment