private void MapField(Expression <Func <T, object> > expression, IElasticProperty elasticProperty) { var descriptor = new PropertyDescriptor <T> { Expression = expression, Property = elasticProperty }; this.PropertyDescriptors.Add(descriptor); }
public Map <T> AddField(Expression <Func <T, object> > expression, IElasticProperty elasticProperty) { this.MapField(expression, elasticProperty); return(this); }
private Map(Expression <Func <T, object> > expression, IElasticProperty elasticProperty) : this() { this.MapField(expression, elasticProperty); }