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
@boop5 I moved #1429 to a GitHub Discussion and moved your question into this new Issue. Can you please elaborate on what problem you are running into? Saying something is "not working" is not very descriptive.
@jzabroski@boop5 I guess that the problem is, that registering an IVersionTableMetaDataAccessor is required, because a registration of a IVersionTableMetaData instance might not be sufficient? However, the registration of a PassThroughVersionTableMetaDataAccessor instance should work too.
I don't know. To me, the behavior @boop5 is describing can only happen if you're using attributes and the attributes are mismatched.
e.g.,
// this attribute could (fail to) bind if your // FluentMigrator.dll dependency in your migration assembly doesn't match FluentMigrator.DotNet.Cli.dll 's FluentMigrator.dll dependency[VersionTableMetaData]publicclassVersionTable:IVersionTableMetaData{publicobjectApplicationContext{get;set;}publicstringAppliedOnColumnName=>"APPLIED_ON";publicstringColumnName=>"VERSION";publicstringDescriptionColumnName=>"MIGRATION";publicboolOwnsSchema=>true;publicstringSchemaName=>"MIG";publicstringTableName=>"HISTORY";publicstringUniqueIndexName=>"IX_HISTORY_VERSION";}
For this reason, I wanted to use MetadataLoadContext to validate the above dependency match. I think --allowDirtyAssemblies would also resolve this issue, but I think checking the version numbers on the two assemblies for this specific scenario is a lot cleaner.
I'll try to run the sample in a net50 project and see what happens.
It seems the resources here are not 100% correct. at least with net5
here is my complete working example
and
Originally posted by @boop5 in #1429 (comment)
The text was updated successfully, but these errors were encountered: