public void AddTag(Tag tag) { if (Tags.All(t => t.Tag.Text != tag.Text)) { var relTag = new RelTag(null, tag, Id); var relOperation = new RelOperation(null, this, tag.Id); Tags.Add(relTag); tag.AddOperation(relOperation); } else { Tags.First(t => t.Tag.Text == tag.Text).IsMarkForDeletion = false; } IsDirty = true; }
public void RemoveOperation(RelOperation relOperation) { relOperation.IsMarkForDeletion = true; }
public void AddOperation(RelOperation relOperation) { Operations.Add(relOperation); }