Comments
2 comments
-
Ah, apologies - this is due to a refactoring we've done recently to make version checks against different SQL Server versions more sensible.
Anyway, there should be a extension method in IDatabaseObjectExtensionMethods which preserves the old API - it's defined like this:public static Regions ScriptObject(this ScriptableDatabaseObject objectToScript, SqlSetOptions sqlSetOptions, Options options) { var targetFeatures = objectToScript.Database.GetSupportedFeatures(); return objectToScript.ScriptObject(sqlSetOptions, options, targetFeatures); }
Is there something else that's causing the old code to not work? -
Mark:
That did the trick, thanks very much!
Regards,
Martin.
Add comment
Please sign in to leave a comment.
Can you please point me in the right direction.
Thanks,
Martin.