/// <summary> /// Generates the SQL string to drop this Table in the database. /// </summary> /// <param name="dialect">The <see cref="Dialect"/> to use for SQL rules.</param> /// <param name="defaultCatalog"></param> /// <param name="defaultSchema"></param> /// <returns> /// A string that contains the SQL to drop this Table and to cascade the drop to /// the constraints if the database supports it. /// </returns> public string SqlDropString(Dialect.Dialect dialect, string defaultCatalog, string defaultSchema) { return(dialect.GetDropTableString(GetQualifiedName(dialect, defaultCatalog, defaultSchema))); }
/// <summary> /// The SQL required to remove the underlying database objects for a TableGenerator. /// </summary> /// <param name="dialect">The <see cref="Dialect"/> to help with creating the sql.</param> /// <returns> /// A <see cref="string"/> that will drop the database objects for the TableGenerator. /// </returns> public virtual string[] SqlDropString(Dialect.Dialect dialect) { return(new[] { dialect.GetDropTableString(tableName) }); }
/// <summary> /// The SQL required to remove the underlying database objects for a TableGenerator. /// </summary> /// <param name="dialect">The <see cref="Dialect.Dialect"/> to help with creating the sql.</param> /// <returns> /// A <see cref="String"/> that will drop the database objects for the TableGenerator. /// </returns> public string SqlDropString(Dialect.Dialect dialect) { return(dialect.GetDropTableString(tableName)); }