Does anyone know of a SQL library in ASP.NET that can be used to manage tables?
Eg
SQLTable table = new SQLTable();
table.AddColumn(“First name”, varchar, 100);
table.AddColumn(“Last name”, varchar, 100);
if(table.ColumnExists(“Company”))
table.RemoveColumn(“Company”);
The operations I am looking for are adding, editing and deleting tables, fields, indexes and foreign keys.
This can be done using SQL but it is messy, I am looking for a clean API that is intuitive to use.