internal VaultItem(string id, string itemKey, DateTime purchaseDate, List <ObjectProperty> properties) { this.Id = id; this.ItemKey = itemKey; this.PurchaseDate = purchaseDate; this.ExistsInDatabase = true; this.Properties = new Dictionary <string, object>(); if (properties != null) { this.Properties = (DatabaseEx.FromDictionary(DatabaseEx.ToDictionary(properties)) as DatabaseObject).Properties; } }
internal DatabaseObject(BigDB owner, string table, string key, string version, List <ObjectProperty> properties) { this.Owner = owner; this.Table = table; this.Key = key; this.Version = version; this.Properties = new Dictionary <string, object>(); this.ExistsInDatabase = true; if (properties != null) { this.Properties = (DatabaseEx.FromDictionary(DatabaseEx.ToDictionary(properties)) as DatabaseObject).Properties; } }