# Custom FeatureSource by inheriting FeatureSource class

**URL:** <https://community.thinkgeo.com/t/custom-featuresource-by-inheriting-featuresource-class/8365>\
**Category:** WPF\
**Created:** [January 13, 2017, 5:25pm UTC](https://community.thinkgeo.com/t/custom-featuresource-by-inheriting-featuresource-class/8365 "2017-01-13T17:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MapSuiteUser](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/f17d59/32.png) [@MapSuiteUser](https://community.thinkgeo.com/u/MapSuiteUser)\
**Post date:** [January 13, 2017, 5:25pm UTC](https://community.thinkgeo.com/t/custom-featuresource-by-inheriting-featuresource-class/8365/1 "2017-01-13T17:25:49Z")

</div>

Hi, I want to make my a custom feature source which will read mapping data from my own custom data store.

I’ve made a class and inherited from FeatureSource and overloaded all the methods but only OpenCore and CloseCore are hit.

Can anyone please point me to some sample code for creating a custom FeatureSource?

Thanks

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [January 16, 2017, 2:53am UTC](https://community.thinkgeo.com/t/custom-featuresource-by-inheriting-featuresource-class/8365/2 "2017-01-16T02:53:41Z")

</div>

Hi,

It looks I found a sample which should be helpful

[http://wiki.thinkgeo.com/wiki/source\_code\_serviceseditionsample\_oledbpointfeaturesource\_cs\_090728.zip#oledbpointfeaturelayercs](http://wiki.thinkgeo.com/wiki/source_code_serviceseditionsample_oledbpointfeaturesource_cs_090728.zip#oledbpointfeaturelayercs)

And you can try to found more sample here:  
[http://wiki.thinkgeo.com/wiki/map\_suite\_wpf\_desktop\_edition\_all\_samples](http://wiki.thinkgeo.com/wiki/map_suite_wpf_desktop_edition_all_samples)

Regards,

Don
