You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Data/Schema/Sql/TableDrop.cs

25 lines
421 B

2 years ago
using System.Text;
namespace Connected.Data.Schema.Sql
{
internal class TableDrop : TableTransaction
{
protected override async Task OnExecute()
{
await Context.Execute(CommandText);
}
private string CommandText
{
get
{
var text = new StringBuilder();
text.AppendLine($"DROP TABLE {Escape(Context.Schema.SchemaName(), Context.Schema.Name)}");
return text.ToString();
}
}
}
}