# Entityframework storage

**URL:** <https://discuss.hangfire.io/t/entityframework-storage/2569>\
**Category:** storage\
**Created:** [October 18, 2016, 9:33pm UTC](https://discuss.hangfire.io/t/entityframework-storage/2569 "2016-10-18T21:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaitreDede](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/maitredede/32/781_2.png) [@MaitreDede](https://discuss.hangfire.io/u/MaitreDede)\
**Post date:** [October 18, 2016, 9:33pm UTC](https://discuss.hangfire.io/t/entityframework-storage/2569/1 "2016-10-18T21:33:29Z")

</div>

Hi,

Is it possible to use hangfire with storage on Entityframework, instead of direct database access ?

Thanks

---

<div class="post-metadata">

**Author:** ![leopignataro](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/leopignataro/32/914_2.png) [@leopignataro](https://discuss.hangfire.io/u/leopignataro)\
**Post date:** [March 28, 2017, 2:47am UTC](https://discuss.hangfire.io/t/entityframework-storage/2569/2 "2017-03-28T02:47:02Z")

</div>

My team would like this as well, since we already rely on Entity Framework for migrations and multiple database support.

Perhaps this would involve defining an interface which my DbContext needs to implement, with some DbSet\<…\>s. Similar to what is done in Identity Framework, but with an interface instead of a base class.
