public override void Visit( IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) //<2> Similarily, override the `Visit` method on `IBooleanProperty` and set `DocValues = false` { type.DocValues = false; }
// Token: 0x060011C8 RID: 4552 RVA: 0x0006147C File Offset: 0x0005F67C public override void CopyFrom(IProperty srcProperty) { if (base.EntityPropertyDefinition.Setter == null) { throw new ConversionException("Unable to set data of type " + base.EntityPropertyDefinition.Type.FullName); } IBooleanProperty booleanProperty = srcProperty as IBooleanProperty; if (booleanProperty != null) { base.EntityPropertyDefinition.Setter(base.Item, booleanProperty.BooleanData); } }
protected override void InternalCopyFrom(IProperty srcProperty) { IBooleanProperty booleanProperty = srcProperty as IBooleanProperty; if (booleanProperty == null) { throw new UnexpectedTypeException("IBooleanProperty", srcProperty); } if (booleanProperty.BooleanData) { base.CreateAirSyncNode("1"); return; } base.CreateAirSyncNode("0"); }
public static void BuildProperty(IBooleanProperty property, TypeBuilder type, PropertyBuilder propertyBuilder, Dictionary <IBusinessObjectBase, TypeBuilder> definedTypes) { var p = propertyBuilder; if (!string.IsNullOrEmpty(property.TrueValue)) { p.ModelDefault("CaptionForTrue", property.TrueValue); p.ModelDefault("CaptionForFalse", property.FalseValue); } if (property.TrueImage != null) { p.ModelDefault("ImageForFalse", property.FalseImage.ImageName); p.ModelDefault("ImageForTrue", property.TrueImage.ImageName); } }
public virtual void Visit(IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) { }
public virtual void Visit(IBooleanProperty property) { }
/** Similarily, override the Visit method on IBooleanProperty and set DocValues = false */ public override void Visit(IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttribute attribute) { type.DocValues = false; }
public void Visit(IBooleanProperty mapping) { Increment("boolean"); }
/** Similarily, override the Visit method on IBooleanProperty and set DocValues = false */ public override void Visit(IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) { type.DocValues = false; }
public override void Visit( IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute) //<2> Similarily, override the `Visit` method on `IBooleanProperty` and set `DocValues = false` { type.DocValues = false; }
public virtual void Visit(IBooleanProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttribute attribute) { }
public override void Visit(IBooleanProperty property) => AddAlias(property);
public virtual void Visit(IBooleanProperty property) { }