public DataMigrationOptionsExtension(DataMigrationOptions migrationOptions)
        {
            _migrationOptions = migrationOptions;
#if !EF2_2
            Info = new DataMigrationOptionsExtensionInfo(this);
#endif
        }
        public static DbContextOptionsBuilder UseDataMigrations(this DbContextOptionsBuilder options, Action <DataMigrationOptions> dataMigrationOptions = null)
        {
            var migrationOptions = new DataMigrationOptions();

            dataMigrationOptions?.Invoke(migrationOptions);
            var extensions = new DataMigrationOptionsExtension(migrationOptions);

            ((IDbContextOptionsBuilderInfrastructure)options).AddOrUpdateExtension(extensions);

            return(options);
        }