AddComputedProperty() public method

Adds a series of computed expressions to be part of the query result
public AddComputedProperty ( NameValueCollection computedProperties ) : void
computedProperties System.Collections.Specialized.NameValueCollection
return void
コード例 #1
0
        private FeatureQueryOptions CreateSourceQuery()
        {
            FeatureQueryOptions query = new FeatureQueryOptions(Options.SourceSchema + ":" + Options.SourceClassName);
            query.AddFeatureProperty(Options.SourcePropertyNames);

            foreach (string alias in Options.SourceAliases)
            {
                query.AddComputedProperty(alias, Options.GetExpression(alias));
            }

            if (!string.IsNullOrEmpty(Options.SourceFilter))
                query.Filter = Options.SourceFilter;

            return query;
        }