Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create SQL Database from Linq2Sql Model

Is it possible to create a SQL DB from a Linq2Sql model? I managed to lose a DB for something I started building a year ago, but have the Linq2Sql model. If this is possible, what are the steps?

like image 316
RSolberg Avatar asked Mar 03 '10 05:03

RSolberg


2 Answers

Are you looking for something like this

How to: Dynamically Create a Database (LINQ to SQL)

YourDataContext db = new YourDataContext ("C:\\YourDB.mdf");
db.CreateDatabase();
like image 98
Adriaan Stander Avatar answered Oct 23 '22 02:10

Adriaan Stander


I have not used this but I believe huagati can do this.

http://www.huagati.com/dbmltools/

like image 1
Geoff Appleford Avatar answered Oct 23 '22 02:10

Geoff Appleford