예제 #1
0
        private void MapField(Expression <Func <T, object> > expression, IElasticProperty elasticProperty)
        {
            var descriptor = new PropertyDescriptor <T> {
                Expression = expression,
                Property   = elasticProperty
            };

            this.PropertyDescriptors.Add(descriptor);
        }
예제 #2
0
 public Map <T> AddField(Expression <Func <T, object> > expression, IElasticProperty elasticProperty)
 {
     this.MapField(expression, elasticProperty);
     return(this);
 }
예제 #3
0
 private Map(Expression <Func <T, object> > expression, IElasticProperty elasticProperty) : this()
 {
     this.MapField(expression, elasticProperty);
 }