Exemplo n.º 1
0
        public ViewSorting(View view)
        {
            if (null == view) throw new ArgumentNullException("view");

            this.View = view;
            this.SortedFields = new List<FieldSorting>();
        }
Exemplo n.º 2
0
        public ParameterToken(View view)
        {
            if (null == view) throw new ArgumentNullException("view");

            this.View = view;
        }
Exemplo n.º 3
0
        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);
        }