-1

I have corrupted an entire database and I have no access to it or backups. Is there a way to recreate the structure of it using a .dbml from visual studio project? Thank you in advance.

AJ GS
  • 37
  • 7

1 Answers1

3

I found the solution. These lines of code would create the entire database structure:

MyDBMLDataContext con = new MyDBMLDataContext(); con.CreateDatabase();

AJ GS
  • 37
  • 7