0

Can I retrieve full database structure using its connection string as collection of tables, its columns, relationships, etc?
Can I modify database using these objects?
Edit: Database - MS SQL Server. I need to be able to retrieve and edit database tables, column names, types, etc in code.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Sergey Metlov
  • 25,747
  • 28
  • 93
  • 153

1 Answers1

1

You can try DbConnection.GetSchema() , see here for a little tutorial.

axel_c
  • 6,557
  • 2
  • 28
  • 41