コード例 #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
ファイル: ParameterToken.cs プロジェクト: t1b1c/lwas
        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);
        }