/// <summary> /// Initializes a new instance of the <see cref="T:System.Object"/> class. /// </summary> public RevisionStatusType(string @alias, string name) : this() { Alias = alias; Name = name; Id = new HiveId(Alias.EncodeAsGuid()); }
/// <summary> /// Overridden this method in order to set a random Id /// </summary> internal override void AddingEntity() { base.AddingEntity(); var random = new Random(); Id = random.Next(10000, int.MaxValue); Key = Alias.EncodeAsGuid(); }