/// <summary> /// Creates SQL to drop auxiliary database objects. /// </summary> /// <param name="dialect">The dialect.</param> /// <param name="defaultCatalog">The default catalog.</param> /// <param name="defaultSchema">The default schema.</param> /// <returns></returns> public override string SqlDropString(NHibernate.Dialect.Dialect dialect, string defaultCatalog, string defaultSchema) { ISpatialDialect spatialDialect = (ISpatialDialect)dialect; StringBuilder builder = new StringBuilder(); // Drop objects per column VisitGeometryColumns((table, column) => builder.Append(spatialDialect.GetSpatialDropString(defaultSchema, table.Name, column.Name))); // Drop general objects builder.Append(spatialDialect.GetSpatialDropString(defaultSchema)); return(builder.ToString()); }
public string GetSpatialDropString(string schema) { return(worker.GetSpatialDropString(schema)); }