I'm new to the enterprise library framework. Is there a way to obtain database schema similar to sqlConnection.GetSchema() method in enterprise library.
Any help would be greatly appreciated.
Thanks, shishi
I'm new to the enterprise library framework. Is there a way to obtain database schema similar to sqlConnection.GetSchema() method in enterprise library.
Any help would be greatly appreciated.
Thanks, shishi
I don't think there is any wrapper for this functionality in the block. You can use the DbConnection.GetSchema() method by getting a DbConnection from the Database:
Database db = DatabaseFactory.CreateDatabase();
DbConnection conn = db.CreateConnection();
DataTable dt = conn.GetSchema();