# Ignore inherited Properties in NEST

**URL:** <https://discuss.elastic.co/t/ignore-inherited-properties-in-nest/110622>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 7:23am UTC](https://discuss.elastic.co/t/ignore-inherited-properties-in-nest/110622 "2017-12-07T07:23:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkdev89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkdev89/32/23593_2.png) [@nkdev89](https://discuss.elastic.co/u/nkdev89)\
**Post date:** [December 7, 2017, 7:23am UTC](https://discuss.elastic.co/t/ignore-inherited-properties-in-nest/110622/1 "2017-12-07T07:23:43Z")

</div>

Hi ,

I have a C# Class which is inheriting from SortedDictionary. So when i do a automap , The properties like Count,items are getting created in the index mapping. Please help me to avoid these base class properties . I have already tried InferMappingFor , but this is not working. If anyone share the working code that would be really helpful and appreciated .

---

<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 4, 2018, 7:23am UTC](https://discuss.elastic.co/t/ignore-inherited-properties-in-nest/110622/2 "2018-01-04T07:23:44Z")

</div>

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