LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
AKRRKA
Posts: 194
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by AKRRKA » Mon 14 Oct 2013 13:54

With LinqConnect Professional Version version 4.2.338 (23-Sep-2013) and 4.2.327 (05-Sep-13) and 4.2.292 (18-Jul-13) - MS SQL Server don`t create Database.

Use code:

Code: Select all

contextForCreateDatabase.CreateDatabase(false, true)
Screenshot with code and DB Monitor window:
http://rghost.ru/49367377/image.png

With previous version (with version 4.2.292 18-Jul-13) all work good.

Please fix it.
Thanks.

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

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by MariiaI » Tue 15 Oct 2013 11:42

This is an expected error due to the fact that you are performing the DatabaseExists method before creating a new database, which doesn't exists yet. When open the connection for the first time you get this error and it is handled by LinqConnect - if you continue debugging your application all tables will be created (please see the dbMonitor log) in the new database.

AKRRKA
Posts: 194
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by AKRRKA » Wed 16 Oct 2013 06:13

Right. To me it need.
First, check to see whether there is created the database, and if it already exists then do not create it. Need some contexts be used to check and to create?
I do not understand why, do not have to work my code.
Despite the fact that it is working correctly with MySQL!!!

PS: Into MS SQL Server Database created without any table!

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

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by MariiaI » Wed 16 Oct 2013 11:18

We will investigate this issue in more details and inform you about the results as soon as possible.

AKRRKA
Posts: 194
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by AKRRKA » Tue 29 Oct 2013 05:40

Is there any results?

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

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by MariiaI » Tue 29 Oct 2013 06:10

The bug related to the "Cannot open database..." error when calling CreateDatabase(false,true) after the DatabaseExists() method has been fixed. The fix will be included in the next build of LinqConnect. We will inform you when it is available for download.

AKRRKA
Posts: 194
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by AKRRKA » Wed 30 Oct 2013 15:02

When will the next version?
For me it is a very important issue.

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

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by MariiaI » Thu 31 Oct 2013 06:55

We are going to release the new build of LinqConnect today or tomorrow. We will post here when it is available for download.

AKRRKA
Posts: 194
Joined: Thu 26 Jan 2012 15:07
Location: Russia
Contact:

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by AKRRKA » Thu 31 Oct 2013 09:12

Thanks for the reply.
I'll be waiting.

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

Re: LinqConnect Professional Version 4.2.338 (23-Sep-2013) - MS SQL Server don`t create Database.

Post by MariiaI » Fri 01 Nov 2013 06:15

New build of LinqConnect 4.4.364 is available for download now!
It can be downloaded from http://www.devart.com/linqconnect/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=31&t=28242.

Post Reply