You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
When generating DataContext from template, method HasDefaultSchema() is called within method OnModelCreating(). Designer does not allow to set db schema as empty field, but in MySql case I don't have schema and this field causes my code not to work. Workaround to set empty schema in partial method OnModelCreatedImpl() does not work since HasDefaultSchema() can not accept empty string. I found solution to edit template and delete line that renders this method.
I guess possible solution for this would be to set default schema field in designer as non mandatory and if the field is empty not to generate this line in DbContext generation.
The text was updated successfully, but these errors were encountered:
msawczyn
added
released
Issue is resolved in a current release
and removed
pending release
Issue is resolved in the current codebase, will be published with the next release
labels
Apr 11, 2020
When generating DataContext from template, method HasDefaultSchema() is called within method OnModelCreating(). Designer does not allow to set db schema as empty field, but in MySql case I don't have schema and this field causes my code not to work. Workaround to set empty schema in partial method OnModelCreatedImpl() does not work since HasDefaultSchema() can not accept empty string. I found solution to edit template and delete line that renders this method.
I guess possible solution for this would be to set default schema field in designer as non mandatory and if the field is empty not to generate this line in DbContext generation.
The text was updated successfully, but these errors were encountered: