Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 public virtual void Visit(IDateProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute)
 {
 }
Esempio n. 3
0
 public virtual void Visit(IDateProperty property)
 {
 }
Esempio n. 4
0
#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);
		public virtual void Visit(IDateProperty property) { }