# Replacement of ElasticAttributes for looking up Type Name

**URL:** <https://discuss.elastic.co/t/replacement-of-elasticattributes-for-looking-up-type-name/68455>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 4:32pm UTC](https://discuss.elastic.co/t/replacement-of-elasticattributes-for-looking-up-type-name/68455 "2016-12-08T16:32:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbrar](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@Jbrar](https://discuss.elastic.co/u/Jbrar)\
**Post date:** [December 8, 2016, 4:32pm UTC](https://discuss.elastic.co/t/replacement-of-elasticattributes-for-looking-up-type-name/68455/1 "2016-12-08T16:32:27Z")

</div>

I'm in the process of upgrading to 2.5 from 1.x. Part of the breaking changes includes the removal of the ElasticAttributes class [https://github.com/elastic/elasticsearch-net/blob/master/docs/2.0-breaking-changes/nest-breaking-changes.md](https://github.com/elastic/elasticsearch-net/blob/master/docs/2.0-breaking-changes/nest-breaking-changes.md).

In the past I was able to do:  
ElasticAttributes.Type(typeof(T)).Name  
to get a POCO's name in Elastic.

What is the recommended way of doing so moving forward?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 5, 2017, 4:32pm UTC](https://discuss.elastic.co/t/replacement-of-elasticattributes-for-looking-up-type-name/68455/2 "2017-01-05T16:32:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
