public override void Visit(IDateProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) { if (propertyInfo.DeclaringType == typeof(MyDocument) && propertyInfo.Name == nameof(MyDocument.DateOfBirth)) { type.NullValue = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); } }
public virtual void Visit(IDateProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) { }
public virtual void Visit(IDateProperty property) { }
#pragma warning restore 618 public void Visit(IDateProperty mapping) { Increment("date"); }
public virtual void Visit(IDateProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttribute attribute) { }
public override void Visit(IDateProperty property) => AddAlias(property);