protected IEnumerable<MigrationStatement> Generate(MigrationOperation operation) { throw new NotSupportedException(string.Format("Unknown operation '{0}'.", operation.GetType().FullName)); }
/// <summary> /// Generates SQL for a <see cref="MigrationOperation" />. /// Allows derived providers to handle additional operation types. /// Generated SQL should be added using the Statement method. /// </summary> /// <param name="migrationOperation"> The operation to produce SQL for. </param> protected virtual void Generate(MigrationOperation migrationOperation) { Check.NotNull(migrationOperation, "migrationOperation"); throw Error.SqlServerMigrationSqlGenerator_UnknownOperation(GetType().Name, migrationOperation.GetType().FullName); }