On Fri, 2010-09-03 at 16:23 -0700, Mikael Lyngvig wrote: > On the net I've found the following piece of code to create a database > from a .dbml file: > > StudioMorphDBDataContext dc = new StudioMorphDBDataContext(); > dc.CreateDatabase(); > > I need to be able to create my databases from DBML. But the above > code does not appear to work: I only get an internal error about the > code not being implemented when I invoke the CreateDatabase() or > DeleteDatabase() methods of the derived class of DataContext().
That is correct: this hasn't been implemented yet. > Any suggestions? Any plans to add this feature to DbLinq? Alas, atm my development time is being spent elsewhere, and I'm not sure when DbLinq will be on my plate full-time again. (Current guess: later this fall.) Even then, I don't see this as a major priority compared to improving query support, DbMetal support, etc., so it would be fairly low on my priority list. > The problem is that I need to be able to create the databases, the > tables, and any constraints upon deployment. For the time being, I would suggest distributing and executing .sql files as part of your install/uninstall process, or contribute the required funtionality. :-) Thanks, - Jon -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
