public static Task Drop(this ISchemaObject schemaObject, NpgsqlConnection conn) { var writer = new StringWriter(); schemaObject.WriteDropStatement(new DdlRules(), writer); return(conn.CreateCommand(writer.ToString()).ExecuteNonQueryAsync()); }
protected Task DropSchemaObjectInDatabase(ISchemaObject schemaObject) { var rules = new DdlRules(); var writer = new StringWriter(); schemaObject.WriteDropStatement(rules, writer); return(theConnection.CreateCommand(writer.ToString()) .ExecuteNonQueryAsync()); }