I'm currently building a library to use in .NET for communicating with a database. We're using the nexusDB and they have a basic .NET driver for communicating in the .NET environment, but since we came from borland I'm trying to build some components now that can take over the work we had in Borland.
So to keep it short, i've build a class called Database, Table and Column that rely on the .NET framework for communication with the database.
I'm able to create tables based upon the meta data from the database and construct then entire schema of the database in memory.
I am however looking for a means to adjust a table. E.g if a programmer uses my components to retrieve the structure of a specific table and adds a column to that table through code how we can we submit these changes back to the database?
i'm aware I will have to make my own SQL generator, but currently I cannot find any means to check in the DataTable object if a column was added aside from the original structure. As far as i know GetChanges() only reflects the changes made to rows, not the structure....
So to keep it short, i've build a class called Database, Table and Column that rely on the .NET framework for communication with the database.
I'm able to create tables based upon the meta data from the database and construct then entire schema of the database in memory.
I am however looking for a means to adjust a table. E.g if a programmer uses my components to retrieve the structure of a specific table and adds a column to that table through code how we can we submit these changes back to the database?
i'm aware I will have to make my own SQL generator, but currently I cannot find any means to check in the DataTable object if a column was added aside from the original structure. As far as i know GetChanges() only reflects the changes made to rows, not the structure....
Comment