Dashing.Engine.Dialects.MySqlDialect.DropForeignKey C# (CSharp) Method

DropForeignKey() public method

public DropForeignKey ( ForeignKey foreignKey ) : string
foreignKey Dashing.Configuration.ForeignKey
return string
        public override string DropForeignKey(ForeignKey foreignKey) {
            var sql = new StringBuilder("alter table ");
            this.AppendQuotedTableName(sql, foreignKey.ChildColumn.Map);
            sql.Append(" drop foreign key ");
            this.AppendQuotedName(sql, foreignKey.Name);
            return sql.ToString();
        }