public ViewSorting(View view) { if (null == view) throw new ArgumentNullException("view"); this.View = view; this.SortedFields = new List<FieldSorting>(); }
public ParameterToken(View view) { if (null == view) throw new ArgumentNullException("view"); this.View = view; }
public void Setup() { if (null == this.ViewsManager) throw new InvalidOperationException("Failed to evaluate view as token. ViewsManager not set."); view = this.ViewsManager.Views[this.ViewName]; field = view.Fields[this.FieldName]; if (null == field) field = view.ComputedFields[this.FieldName]; if (null == field) field = view.Aliases .Keys .FirstOrDefault(tf => tf.Name == this.FieldName); }