Esempio n. 1
0
        public static Task Drop(this ISchemaObject schemaObject, NpgsqlConnection conn)
        {
            var writer = new StringWriter();

            schemaObject.WriteDropStatement(new DdlRules(), writer);

            return(conn.CreateCommand(writer.ToString()).ExecuteNonQueryAsync());
        }
Esempio n. 2
0
        protected Task DropSchemaObjectInDatabase(ISchemaObject schemaObject)
        {
            var rules  = new DdlRules();
            var writer = new StringWriter();

            schemaObject.WriteDropStatement(rules, writer);

            return(theConnection.CreateCommand(writer.ToString())
                   .ExecuteNonQueryAsync());
        }