Open rachelbahar opened 3 years ago
Hi @rachelbahar could you please describe what did yo mean by 'does not work'? Does it throw exception? Do nothing? Or what?
Hi, "Doesn't work" means that the code execution of this line updater.Execute(true, true); takes long and the schema is not updated
You can check with the attached project -
Hi , I found the problem!! It is at MySqlConnector side. NHibernate sends requests for metadata for specific SCHEMA and utilizes restrictionsValues which are ignored from MySqlConnector . [Part of MySqlConnector Source code]
I've made the changes and a private build to work with MySqlConnector version 2.1.2 for .net6.0 but NHibernate.MySqlConnector package has dependencies and overwrites my fixed version of MySqlConnector with the original. Is there a way to overcome this issue without post build actions ? or I must fork this project and add PrivateAssets=All to PackageReference?
FluentNHibernate 3.1.9 NH 5.3.9 MySqlConnector 1.3.11 NHibernate.Driver.MySqlConnector 2.0.0
Executing the following code doesn't work:
Note: create does work (but update doesn't)
TestNHMySqlSchemaUpdate.zip