public TemplateMappingDescriptor RemoveMapping <T>() where T : class { var typeName = new TypeNameResolver().GetTypeNameFor <T>(); return(this.RemoveMapping(typeName)); }
public RootObjectMappingDescriptor <T> SetParent <K>() where K : class { var parentType = new TypeNameResolver().GetTypeNameFor <K>(); this._Mapping.Parent = new ParentTypeMapping() { Type = parentType }; return(this); }
public Inferrer(IConnectionSettingsValues connectionSettings) { connectionSettings.ThrowIfNull(nameof(connectionSettings)); _connectionSettings = connectionSettings; IdResolver = new IdResolver(connectionSettings); IndexNameResolver = new IndexNameResolver(connectionSettings); TypeNameResolver = new TypeNameResolver(connectionSettings); RelationNameResolver = new RelationNameResolver(connectionSettings); FieldResolver = new FieldResolver(connectionSettings); RoutingResolver = new RoutingResolver(connectionSettings, IdResolver); Contracts = new ConcurrentDictionary <Type, JsonContract>(); CreateMultiHitDelegates = new ConcurrentDictionary <Type, Action <MultiGetHitJsonConverter.MultiHitTuple, JsonSerializer, ICollection <IMultiGetHit <object> > > >(); CreateSearchResponseDelegates = new ConcurrentDictionary <Type, Action <MultiSearchResponseJsonConverter.SearchHitTuple, JsonSerializer, IDictionary <string, object> > >(); }
public BulkDeleteDescriptor() { this._typeNameResolver = new TypeNameResolver(); }
public CreateWarmerDescriptor() { this.typeNameResolver = new TypeNameResolver(); }
public BulkIndexDescriptor() { this._typeNameResolver = new TypeNameResolver(); }
public SearchDescriptor() { this.typeNameResolver = new TypeNameResolver(); }
public SimpleGetDescriptor() { this.typeNameResolver = new TypeNameResolver(); }
public PercolateDescriptor() { this.typeNameResolver = new TypeNameResolver(); }
public PutWarmerDescriptor(IConnectionSettings connectionSettings) { this.typeNameResolver = new TypeNameResolver(); this.indexNameResolver = new IndexNameResolver(connectionSettings); }
public UpdateDescriptor() { this.typeNameResolver = new TypeNameResolver(); }
public MoreLikeThisDescriptor() { this.typeNameResolver = new TypeNameResolver(); }