Пример #1
0
 //constructor with IMemento parameter for EventStore Snapshooting
 private ToDoItem(ToDoItemMemento mementoItem)
 {
     Id           = mementoItem.Id;
     Version      = mementoItem.Version;
     ToDoListId   = mementoItem.ToDoListId;
     Description  = mementoItem.Description;
     CreationDate = mementoItem.CreationDate;
     DueDate      = mementoItem.DueDate;
     Importance   = mementoItem.Importance;
     ClosingDate  = mementoItem.ClosingDate;
     UserId       = mementoItem.UserId;
 }
Пример #2
0
 //constructor with IMemento parameter for EventStore Snapshooting
 private ToDoItem(ToDoItemMemento mementoItem)
 {
     Id = mementoItem.Id;
     Version = mementoItem.Version;
     ToDoListId = mementoItem.ToDoListId;
     Description = mementoItem.Description;
     CreationDate = mementoItem.CreationDate;
     DueDate = mementoItem.DueDate;
     Importance = mementoItem.Importance;
     ClosingDate = mementoItem.ClosingDate;
     UserId = mementoItem.UserId;
 }