Create Temporary DB with Linq?

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Create Temporary DB with Linq?

Post by Zero-G. » Thu 21 Jan 2010 12:26

Hey

Using dotConnect for mySQL.
Is it possible to create and delete temporary tables with LinQ?
Or do I have to make this through the DataReader?

THX

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 21 Jan 2010 13:58

First of all, you have an opportunity to execute SQL queries using the DataContext.ExecuteCommand method.
You also can use DataContext.CreateDatabase and DataContext.DeleteDatabase to create/delete the whole database corresponding to the context.

Post Reply