updates NodeDto and PropertyTypeDto to auto-gen GUIDs by default

This commit is contained in:
Shannon
2015-06-25 16:55:55 +02:00
parent 88a0189f23
commit 7b28e64c9e
2 changed files with 12 additions and 0 deletions

View File

@@ -9,6 +9,12 @@ namespace Umbraco.Core.Models.Rdbms
[ExplicitColumns]
internal class NodeDto
{
public NodeDto()
{
//By default, always generate a new guid
UniqueId = Guid.NewGuid();
}
public const int NodeIdSeed = 1050;
[Column("id")]

View File

@@ -9,6 +9,12 @@ namespace Umbraco.Core.Models.Rdbms
[ExplicitColumns]
internal class PropertyTypeDto
{
public PropertyTypeDto()
{
//by default always create a new guid
UniqueId = Guid.NewGuid();
}
[Column("id")]
[PrimaryKeyColumn(IdentitySeed = 50)]
public int Id { get; set; }