示例#1
0
文件: ViewSorting.cs 项目: t1b1c/lwas
        public ViewSorting(View view)
        {
            if (null == view) throw new ArgumentNullException("view");

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

            this.View = view;
        }
示例#3
0
文件: ViewToken.cs 项目: t1b1c/lwas
        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);
        }