[longomatch] Initialize ProjectID too



commit 0cbb4a47eced4463a5d0ed5968342a67fb3f7be1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Mar 25 17:37:26 2015 +0100

    Initialize ProjectID too

 LongoMatch.Core/Store/ProjectDescription.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/ProjectDescription.cs b/LongoMatch.Core/Store/ProjectDescription.cs
index 4dfbeb2..59394b3 100644
--- a/LongoMatch.Core/Store/ProjectDescription.cs
+++ b/LongoMatch.Core/Store/ProjectDescription.cs
@@ -35,13 +35,14 @@ namespace LongoMatch.Core.Store
                public ProjectDescription ()
                {
                        ID = Guid.NewGuid ();
+                       ProjectID = ID;
                        MatchDate = LastModified = DateTime.Now;
                }
 
                [OnDeserialized]
                internal void OnDeserializedMethod (StreamingContext context)
                {
-                       // For old projects missing ProjectID 
+                       // For old projects missing ProjectID
                        if (ProjectID == Guid.Empty) {
                                ProjectID = ID;
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]