public void RemoveProperty(PropertyExpressionViewModel child) { this.Fields.Remove(child); SelectStatement select = this.Model as SelectStatement; if (select.SELECT == null || select.SELECT.Count == 0) { return; } PropertyExpression model = child.Model as PropertyExpression; if (model == null) { return; } select.SELECT.Remove(model); }
public PropertyExpressionView(PropertyExpressionViewModel viewModel) : this() { this.DataContext = viewModel; }