예제 #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);
        }