public ItemVersion( ItemId itemId, FileHashKey fileKey, Version version, IEnumerable <FileData> files = null) : this( ItemVersionId.New(), itemId, fileKey, version, DateTime.Now, null, files) { }
public ItemVersion( ItemVersionId id, ItemId itemId, FileHashKey fileKey, Version version, DateTime created, DateTime?lastChange = null, IEnumerable <FileData> files = null) { Id = id; ItemId = itemId; FileKey = fileKey; Version = version; Created = created; LastChange = lastChange ?? DateTime.Now; if (files != null) { this.Files.AddRange(files); } }