Exemplo n.º 1
0
        /// <inheritdoc />
        public ChangeSet GetChangeSet(ChangePath path, bool commit = false)
        {
            if (!HasChanges)
            {
                return(null);
            }

            var changes = new ChangeSet();

            foreach (var change in Changes)
            {
                changes.Merge(change.Value.GetChangeSet(path.AppendProperty(change.Key), commit));
            }

            return(changes);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a <see cref="ChangePath"/> using the provided property name to create
 /// the initial <see cref="ChangePathProperty"/>.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <returns></returns>
 public static ChangePath Create(string property)
 {
     return(Empty.AppendProperty(property));
 }