Identity Guid Properties
-
- Posts: 27
- Joined: Thu 09 Jun 2011 22:32
Identity Guid Properties
My tables use Guids for the primary key, with a default value of newid(). I set the conceptual and storage "Store Generated" attribute to Identity. This works. However, every time I update the model from the database, it wants to update the primary key from [Identity(Old="true", New="false")]. Is there any way to stop this?
-
- Posts: 27
- Joined: Thu 09 Jun 2011 22:32
This feature is added in the latest 4.0.15 build of Entity Developer for SQL Server. The new build can be dowloaded from here (the trial version) or from Registered Users' Area (for users with active subscription only):
For the detailed information about the improvements and fixes available in EntityDeveloper for SQL Server 4.0.15, please refer to
this announcement.
For the detailed information about the improvements and fixes available in EntityDeveloper for SQL Server 4.0.15, please refer to
this announcement.
-
- Posts: 27
- Joined: Thu 09 Jun 2011 22:32
So far, so good. Another related issue is still around. I have many fields called "CreatedDate". It's default value in the db is set to getdate(). I set it to "Computed" in the conceptual and storage model. However, when updating the model from the db, it keeps wanting to change it. It displays the message "IsExpression(old='True', new='False') was changed". Can you fix this?
-
- Posts: 27
- Joined: Thu 09 Jun 2011 22:32
-
- Posts: 27
- Joined: Thu 09 Jun 2011 22:32
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
The fix for this issue is available in the new 4.0.24 build of Entity Developer for SQL Server we've released today.
You can download the new build from
http://www.devart.com/entitydeveloper/download.html
(the trial and free versions) or from Registered Users' Area (provided that you have an active subscription):
http://secure.devart.com/
You can download the new build from
http://www.devart.com/entitydeveloper/download.html
(the trial and free versions) or from Registered Users' Area (provided that you have an active subscription):
http://secure.devart.com/