Beispiel #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);
        }
Beispiel #2
0
 public Map <T> AddField(Expression <Func <T, object> > expression, IElasticProperty elasticProperty)
 {
     this.MapField(expression, elasticProperty);
     return(this);
 }
Beispiel #3
0
 private Map(Expression <Func <T, object> > expression, IElasticProperty elasticProperty) : this()
 {
     this.MapField(expression, elasticProperty);
 }