After a few hours in debug mode, I get an error message.
In the constructor, I get the schema name on connectionString and set the (schemaName) property with this value.
But when the execution received the OnModelCreating () method, my schemaName property was set, who knows why, to NULL.
Then I put the schemaName variable in the code using the method. When I do this, everything is correct.
Thanks everyone!
Here is the code:
protected override void OnModelCreating(DbModelBuilder modelBuilder) {
yanborowski
source share