CreateDatabase does not work

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

CreateDatabase does not work

Post by Zero-G. » Fri 05 Jun 2015 14:41

Hey
I use Version 4.4.7450.0
(LinQ to Ms-SQL Server)
I have a complex DataLayout with over 100 tables
I try to run the CreateDatabase Procedure from within my DataContext
Within the second execution of the create table Statement, I get an error, that a Foreign key can't be created, because of a missing table.

I looked with dbMonitor, what the create Statement is trying to do.
And I can see, that the Foreign Key will be executed at table creation. - This can't work anyhow.
First all database objects have to be created, before Relations can be added.

Please help - THX

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: CreateDatabase does not work

Post by MariiaI » Tue 09 Jun 2015 08:23

We have contacted you by e-mail.

Post Reply